Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ipad MPMovieplayerController video loads but automatically pauses when played

I am trying to get the MPMovieplayerController to work. I load a video everything goes wel i even see the first frame but then it automatically pauses, if i press play it pauses again. In the simulator it works perfectly but on the ipad device it gives the problem. I can even seek through the video and i see the frame i seeked to but nothing plays. This is some output from the console:

2010-06-08 22:16:13.145 app[3089:207] Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
[Switching to thread 12803]
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/VCH263.videodecoder" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/H264H2.videodecoder" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/MP4VH2.videodecoder" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/JPEGH1.videodecoder" (file not found).
2010-06-08 22:16:15.145 app[3089:207] setting file:///private/var/mobile/Applications/46CE5456-6338-4BBF-A560-DCEFF700ACE0/tmp/MediaCache/

I dont get those warning when using the simulator BTW.

Does anyone know how to fix this ?

like image 848
slayerIQ Avatar asked Jun 08 '10 20:06

slayerIQ


People also ask

Why do my videos keep pausing on my IPAD?

That's because the videos are not downloading fast enough so they pause during playback until the downloaded content catches up with the video player. Typically, that means that your Internet connection isn't fast enough.

Why do videos keep pausing on my iPhone?

This is typical if there is not much free space on you iPhone. So, create more space. Manually Restart your iPhone: Go To: Settings.


2 Answers

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

like image 68
xwwxy Avatar answered Nov 11 '22 09:11

xwwxy


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

like image 24
slayerIQ Avatar answered Nov 11 '22 08:11

slayerIQ