chewie
chewie copied to clipboard
This error occurs in Flutter when using the video_player (chewie) package, and it’s related to ExoPlayer's failure to render the video due to a codec or hardware decoding issue
❌ Video initialization failed: PlatformException(VideoError, Video player had error androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [640, 480, 29.970055, ColorInfo(BT601, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES, null, null)
+1
❌ Video initialization failed: PlatformException(VideoError, Video player had error androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [640, 480, 29.970055, ColorInfo(BT601, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES, null, null)
+1
+1
Any news for this issue ?
@ChiragGajjar as stated in the README, this library merely creates a UI over the video_player plugin.
Please raise an issue with the Flutter Team, since this looks like it affects the Android implementation.
the issue occurs because error handling is missing for underlying video player controller initialization calls (example https://github.com/fluttercommunity/chewie/blob/c094ed8ec7751e597a0f09dcf5b6689503793d04/lib/src/chewie_player.dart#L621)
the initialization future might complete with platform exception
PlatformException (PlatformException(VideoError, Failed to load video: Cannot Open: This media format is not supported.: The operation couldn’t be completed. (CoreMediaErrorDomain error -12939 - received more bytes 1865 + 7410 = (9275) than promised (5300)), null, null)),,,,,,,,Similar problem, it seems that the returned video format is not standard, but I don't know how to deal with it