[英]Android VideoView “Video cannot be played” works in Gallery
I receive an error when trying to play a large m4v file in my Android application. 尝试在Android应用程序中播放较大的m4v文件时收到错误消息。 "Sorry, this video cannot be played" The VideoView's onError handler gets called like: onError(MediaPlayer mp, int what, int extra)
“很抱歉,无法播放此视频” VideoView的onError处理程序被调用为:onError(MediaPlayer mp,int what,int extra)
With "what" being 1 and "extra" being -2147483648 其中“ what”为1,“ extra”为-2147483648
The exact same video plays without issues in the Gallery application. 完全相同的视频播放在Gallery应用程序中没有问题。
have you set the permission to read the internal storage??? 您是否设置了读取内部存储器的权限???
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission>
do this and it should work 做到这一点,它应该工作
据我所知,android支持mp4但不支持m4v,请在此处回答
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.