我想讓MPMovieplayerController工作。我加載視頻一切順利,我什至看到第一幀,但然後它會自動暫停,如果我按播放它再次暫停。在模擬器中,它可以很好地工作,但是在ipad設備上它可以解決問題。我甚至可以通過視頻尋找,我看到我尋找的框架,但沒有播放。這是從控制檯的一些輸出:Ipad MPMovieplayerController視頻加載但播放時自動暫停
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/
我沒有得到那些警告,當使用模擬器順便說一句。
有誰知道如何解決這個問題?
是的,這發生在我的3.2模擬器和設備(iPad)上。視頻在HTML5中或在MoviePlayerViewController中本地播放,但不是兩者的組合。不過,iOS 4 +可以正常工作。即我無法在我的UIWebView中播放視頻,然後以編程方式在iOS視頻播放器中播放視頻 – cipherz 2010-12-15 22:18:48