views:

1298

answers:

9

Hello

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 ?

+5  A: 

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

slayerIQ
I also had this problem, thanks!
hellozimi
It took my 6 hours to find this thread... Thank you! :)
Juri Keller
Kinda hard to tell your users to restart their devices all of the time.We play a video on app startup, and this causes the app to hang.Anyone got any bright ideas as to how to recover?
half_brick
Has anyone found a solution to this other then restarting the device yet??
Geoff Baum
A: 

I've seen that issue as well, but I would like to know how to do not to end up in that case ! Without restarting the app or the ipad.

Psycho
A: 

hmm I just upgraded my ipad to 3.2.1 and also got the new sdk 4.0.1

and now suddenly i get the exact same problem. but the fix you provide doesn't work.... works fine in the simulator.... argh i guess is shouldn't have upgraded

chrisg
A: 

avaudioplayer was causing my problem... apperently and only on the ipad device avaudioplayer and mpmovieplayercontroller cannot 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 iphone work fine

i switched back to audioservices since i need audioplayer and movieplayer to play at the same time.

chrisg
A: 

I keep getting this too and crashes. I importing a video and converting it to images

Burf2000
A: 

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!

DuMmWiaM
A: 

Started a bounty, since simply 'restarting the iPad' is not a valid solution (I think). I'm looking for a proper cause and solution.

MiRAGe
A: 

Damn it... I was looking for this for 6 days...

Thanks ! It works.

William Remacle
+3  A: 

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

xwwxy