You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
manhag
changed the title
[BUG]switching to another video doesn't pause the video
[BUG]switching to another video doesn't pause the first one
May 10, 2020
Describe the bug
before last update ....switching between videos .....pause the first one
now it is not working
To Reproduce
initState()
@OverRide
void dispose() {
_controller.dispose();
super.dispose();
}
@OverRide
void deactivate() {
// Pauses video while navigating to next page.
_controller.pause();
super.deactivate();
}
Widget build(BuildContext context) {
return
YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
progressIndicatorColor: Colors.blueAccent,
)}
Expected behavior
pausing previous video
Screenshots
If applicable, add screenshots to help explain your problem.
Technical Details:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: