nstudio / nativescript-videoplayer

:clapper: Video Player widget for NativeScript apps
MIT License
133 stars 59 forks source link

Video plays in background #146

Open yogesh5689 opened 5 years ago

yogesh5689 commented 5 years ago

If move to another component the video keeps on playing in background .This probelm only occurs only in ios ,not in android

kdmakwana43 commented 5 years ago

Same issue here.

yogesh5689 commented 5 years ago

Same issue here. issue resolved https://stackoverflow.com/questions/56684341/how-to-stop-video-playing-in-background-nativescript-angular

delanick commented 5 years ago

@bradmartin +1

mreall commented 3 years ago

Same issue here. issue resolved https://stackoverflow.com/questions/56684341/how-to-stop-video-playing-in-background-nativescript-angular

That resolution only works if the page component is aware of the video player component. If the video player is added dynamically from another component, the solution doesn't work.

I use nativescript-vue, is there a way to detect a page navigation from the component displaying the video-player? This probably isn't the right forum to ask that question, but perhaps someone has another solution that would also work.