Closed PiN73 closed 5 years ago
Just made number of tests (launch app, press play, wait until playing started or error occurred, close app, repeat). Used the following parameters
FluTube(
'https://www.youtube.com/watch?v=nPt8bK2gbaU',
aspectRatio: 16 / 9,
autoInitialize: true,
)
the result is ++++++++-+-++---++-++++++-++++-+
(+
means worked, -
means error)
I'm aware of this. But unfortunately i think there is not too much i can do since this error occurs in the video_player plugin :( I hope they will fix it one day... I know it is not a flutube error because i did some debug and all URLs are loading well before creating the player, but it sometimes just crashes because, i believe, there is a race condition somewhere in the video_player plugin code. Sorry not to be more helpful. If you know what the error is and where it happens, you could open an issue in the video_player plugin repo.
So it is not related to copyrighted videos and encryption? From readme:
PLEASE NOTE: Embedding copyrighted videos is actually not possible.
Nope. This error happens with all videos. If you try to embed a copyrighted video, it won't play at anytime. No matter if you retry.
OK, thank you for explanation
You are welcome :)
I tried to play example video. It works well, but about in 5% cases it prints the following exception
and the video is loading infinitely showing on-screen error
Full output when video is crashed
Output when video works
Tried on different networks, different emulators and physical devices, debug and release versions.