chewie
chewie copied to clipboard
ExoPlaybackException: MediaCodecVideoRenderer error while clicking refresh icon
I am loading the stream URL dynamically to the player. When the payer is in a loading stage and the user clicks the refresh icon in the player 2-3 times, the player will throw this exception.
PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(2, null, null, video/avc, avc1.4D4020, 3220800, null, [1280, 720, -1.0], [-1, -1]), format_supported=YES, null, null)
Any solution to overcome this issue?
I have a similar issue. Any luck fixing this?
Disposing the video controller instance seems to fix this issue.
videoPlayerController?.dispose();