Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [848, 480, 29.970388], [-1, -1]), format_supported=YES, null, null) #194

Open
DipakSkywave opened this issue Apr 16, 2024 · 1 comment

Comments

@DipakSkywave
Copy link

DipakSkywave commented Apr 16, 2024

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [848, 480, 29.971603], [-1, -1]), format_supported=YES, null, null)

@Shahed-Atik @newtaDev @duongtuancanhktpm @harshd110

It seems to happen after I call playerController.changeVideo ~10 time. Please help to check the problem.

Here is my code:
PodPlayerController? controller;

void changeVideo(String url) {
if (controller != null) {
controller!.changeVideo(
playVideoFrom: PlayVideoFrom.network(url),
playerConfig: PodPlayerConfig(autoPlay: false));
}
}

FYI, I have already added android:usesCleartextTraffic="true" in the AndroidManifest.xml file.

image
@jaimin1215
Copy link

Hello @DipakSkywave

I have fixed this error by adding this dispose method in this function.
Screenshot 2024-07-25 at 10 48 21 AM

@newtaDev Please add this line in code and push it to the live. So, many users will resolved their errors.

amol-d pushed a commit to amol-d/pod_player that referenced this issue Sep 25, 2024
amol-d pushed a commit to amol-d/pod_player that referenced this issue Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants