Android VideoView“视频无法播放”画廊中的作品
当我尝试在 Android 应用程序中播放大型 m4v 文件时收到错误。 “抱歉,该视频无法播放” VideoView 的 onError 处理程序被调用,如下所示: onError(MediaPlayer mp, int what, int extra)
“what”为 1,“extra”为 -2147483648
完全相同的视频在图库应用程序中播放,没有问题。
I receive an error when trying to play a large m4v file in my Android application.
"Sorry, this video cannot be played"
The VideoView's onError handler gets called like:
onError(MediaPlayer mp, int what, int extra)
With "what" being 1 and "extra" being -2147483648
The exact same video plays without issues in the Gallery application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,android支持mp4但不支持m4v,询问并回答这里< /a>
As far as I know, android support mp4 but not m4v, asked and answered here
你设置了读取内部存储的权限吗???
这样做应该可以
have you set the permission to read the internal storage???
do this and it should work