Closed letanssang closed 1 week ago
it works okay with package youtube_player_iframe
I'm also experiencing this bug
i have the same problem
To get around this, I basically used set state to replace the YouTube player widget with a sinzedbox, just before popping the page
I solved this issue by setting useHybridComposition to false in YoutubePlayerFlags
set useHybridComposition
to false
is not working for me. I send a PR to fix
Describe the bug When pop out of screen contains youtube video player, the video player didn't disappeared immediately and there is an exception. (i have disposed youtube controller in dispose method) A YoutubePlayerController was used after being disposed. Once you have called dispose() on a YoutubePlayerController, it can no longer be used.
Expected behavior video player is disappeared before screen is disposed.
Screenshots
https://github.com/sarbagyastha/youtube_player_flutter/assets/67082439/fc6badd9-7d92-4a21-88ac-1f8da8b9bea9
Here is my code