【发布时间】:2021-12-01 05:27:32
【问题描述】:
视频加载错误时的错误码
{"error": {"errorException": "com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.640034, -1, null, [2160, 3840, 24.000002], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES", "errorString": "ExoPlaybackException type : 1"}}
目前我正在使用这个版本并在真正的 Android 设备上构建
反应原生:0.64
react-native-video: ^5.2.0-alpha1
这是 h.264 视频示例:https://lifebeligum.s3.ap-southeast-1.amazonaws.com/documents/2021-10-04/ef07eb88-1e53-4800-b7cb-64e908a264c3.mp4
有人知道吗?
【问题讨论】:
-
视频文件大小为 2160x3840 像素 (4K)。你应该edit你的帖子包括你如何测试(模拟器或物理设备与make/model/OS版本)。
-
感谢您的回复。我刚刚更新了!
-
在提及物理设备时,您应该说明技术规格,例如三星 S9,型号 G9600,运行 Android 10。或者至少说明视频是否在您使用的设备上使用适用于 Android 的 VLC 播放。还要意识到该插件在后台使用 Exoplayer,因此您应该阅读:exoplayer.dev/debug-logging.html
标签: android react-native exoplayer react-native-video