Ipad MPMovieplayerController video loads but automatically pauses when played

自作多情 提交于 2019-11-30 09:06:29

Set the property "useApplicationAudioSession" of the MPMoviePlayerController to "NO" to resolve the problem.

Found the solution just restart the ipad and it works again weird but thats it :)

Had the same problem. Video was playing ok on simulation but not on device. The problem was either on my HTML5 code embeded in the UIView or on the mp4 video compression, I don't know what fixed it but I suggest you try both. I am still getting the error when I am testing the video on the device, but the video plays just fine!

Edward

I had an issue on the device where the video would show up but not play. I could scrub. The fix for me was that I was using the avaudiorecorder, and I was releasing it before playing the video without stopping the audio recorder. My solution was to add the stop call to the recorder before starting the video:

[recorder stop];
[recorder release];
chrisg

Avaudioplayer was causing my problem. Apperently on the iPad Avaudioplayer and Mpmovieplayercontroller cannot both play at the same time.

If an Avaudioplayer object is open the Mpmovieplayer will only display a frame and immediately stop playing.

As far as I can tell this only happens with iPad device 3.2.1 and SDK 4.0.1; simulators and the iPhone work fine

I switched back to Audioservices since I need Audioplayer and Movieplayer to play at the same time.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!