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

PlatformException(VideoError, Video player had error androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64003C, -1, null, [8000, 1500, 25.0, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES, null, null) #861

Open
PFY1213 opened this issue Oct 6, 2024 · 3 comments

Comments

@PFY1213
Copy link

PFY1213 commented Oct 6, 2024

import 'package:flutter/material.dart';
import 'package:chewie/chewie.dart';
import 'package:video_player/video_player.dart';

class VideoView extends StatefulWidget {
final String url;
final bool autoPlay;
final bool looping;
final double aspectRatio;
const VideoView({super.key, required this.url, this.autoPlay=false, this.looping=false, this.aspectRatio=16/9,});

@OverRide
State createState() => _VideoViewState();
}

class _VideoViewState extends State {
late VideoPlayerController _videoPlayerController;
late ChewieController _chewieController;
@OverRide
initState() {
_videoPlayerController = VideoPlayerController.asset('assets/1.mp4');
initVideo();
_chewieController = ChewieController(
videoPlayerController: _videoPlayerController,
autoPlay: widget.autoPlay,
looping: widget.looping,
aspectRatio: widget.aspectRatio
);
super.initState();
}
Future initVideo() async {
await _videoPlayerController.initialize();
}

@OverRide
void dispose() {
_videoPlayerController.dispose();
_chewieController.dispose();
super.dispose();
}

@OverRide
Widget build(BuildContext context) {
double screenW = MediaQuery.of(context).size.width;
double screenH = MediaQuery.of(context).size.height;
return Container(
width: screenW,
height: screenH/2,
color: Colors.grey,
child: Chewie(
controller: _chewieController,
),
);
}
}

image

Does anyone have this problem? Please help me solve it. thank you.

@AKA-LinCoder
Copy link

same problem

@PFY1213
Copy link
Author

PFY1213 commented Oct 14, 2024

same problem

Version 3.24.3 is problematic, downgrade to version 3.22.1 is okay

@thanhcongvietec
Copy link

I have same issue with flutter version 3.24.3 . But when i downgrade to 3.22.2 then it's Ok . I hope resolve this issues on new version flutter soon.

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

3 participants