android - Ionic nav-view and external resource -


i'm trying display video within application. i've created link such:

<a href="movie/my_movie.mp4">start movie</a> 

everything fine , video spins up, when push button nav state resetted , have restart app in order "main" page of app. there trick maintain nav state when starting video?

yes there trick can use below code in button listener

below example reference can adjust getting status of media player mediaplayer.isplaying()

final mediaplayer mp1 = mediaplayer.create(playaudioactivity.this, r.raw.beet);          mbackbtn.setonclicklistener(new view.onclicklistener() {              @override             public void onclick(view v) {                 if (mp1.isplaying()) {                   }else{                    finish();                  }               }          }); 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -