I'm using flutter video_player(https://pub.dartlang.org/packages/video_player) plugin to play videos. But When I navigate from one page to another in flutter the video is still playing. I'm having the same problem when playing music from any other app(eg: playing music from notification while flutter video is playing). How can I pause it?
Read more here: https://stackoverflow.com/questions/54692450/how-to-pause-flutter-videovideo-player-plugin-when-navigating-from-page-to-ano
This content was originally published by divyanshu bhargava at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.