请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

PlatformException(VideoError, Video player had error androidx.media3

老师遇到这个问题了,翻了好几个答案都是不行的,求助下这是啥问题,是不兼容吗?

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2024-10-08 08:22:19
将完整的错误log贴一下,我来分析下哈
0 回复 有任何疑惑可以回复我~
  • E/flutter (12098): #0      _AsyncCompleter.complete (dart:async/future_impl.dart:43:31)
    E/flutter (12098): #1      VideoPlayerController.initialize (package:video_player/video_player.dart:442:25)
    E/flutter (12098): <asynchronous suspension>
    E/flutter (12098): #2      _VideoViewState.waitVideoPlay.<anonymous closure> (package:flutter_projects/widget/video_view.dart:37:52)
    E/flutter (12098): <asynchronous suspension>
    E/flutter (12098): #3      _VideoViewState.waitVideoPlay (package:flutter_projects/widget/video_view.dart:37:5)
    E/flutter (12098): <asynchronous suspension>
    W/MediaCodecRenderer(12098): Failed to initialize decoder: OMX.hisi.video.decoder.avc
    W/MediaCodecRenderer(12098):   android.media.MediaCodec$CodecException: Error 0xfffffc0e
    W/MediaCodecRenderer(12098):       at android.media.MediaCodec.native_configure(Native Method)
    android.media.MediaCodec.configure(MediaCodec.java:2023)
    androidx.media3.exoplayer.mediacodec.SynchronousMediaCodecAdapter$Factory.createAdapter(SynchronousMediaCodecAdapter.java:53)
    回复 有任何疑惑可以回复我~ 2024-10-08 13:19:35
  • E/MediaCodecVideoRenderer(12098): Video codec error
    E/MediaCodecVideoRenderer(12098):   androidx.media3.exoplayer.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.hisi.video.decoder.avc, 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])
    E/MediaCodecVideoRenderer(12098):       at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback
    回复 有任何疑惑可以回复我~ 2024-10-08 13:20:00
  • Caused by: android.media.MediaCodec$CodecException: Error 0xfffffc0e
    回复 有任何疑惑可以回复我~ 2024-10-08 13:20:27
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信