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.
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,请在此处回答
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.