Video not paused in my app

Hey everyone, I’m play a local video in my app. and i’m done app with tabs. At the time of playing a video click on tabs video is not paused, it continuous the play. but click on ion-nav button in video playing page the video is paused.
please help to solve this problem …

i,m using the code in html like

Thanks in advance…

do you mean the ion-nav-back-button with “ion-nav button”?

keep in mind there is view caching in your app --> if you switch tabs the old one is cached in your dom.

Simple way is to create a directive for you video --> listen on the $ionicView.beforeLeave event and pause the video manually everytime you leave the view.

How to use javascript video-api: