0

我使用 SDK 3.0 中名为 MoviePlayer 的示例,但它有时会崩溃。

PS:我从不更改任何代码。


问题一:

我的环境:

局域网媒体服务器:10.0,0.118

我输入一个 MP4 地址:

http://10.0.0.118/1.mp4

它工作正常,但有时会崩溃。

使用 gdb:bt mach_msg_trap

mach_msg CFRunLoopRunSpecific CFRunLoopRunInMode GSEventRunModal GSEventRun UIApplicationMain main

这是什么意思?我从不修改任何代码。


问题2:

有时,如果我播放一个 MP4 文件,然后再播放,模拟器的屏幕会震动。如果我播放另一个 MP4 文件,它工作正常。

我怎样才能让它工作?


问题 3:

我第一次播放电影时,命名的代表MPMoviePlayerContentPreloadDidFinishNotification不起作用。如果我再次播放它或播放另一部电影,它就会被调用。

为什么?

4

1 回答 1

0
  1. Question 2) This shock and blinking is only a bug in the emulator. It is not happening on a real iPhone device so don't worry about it.
  2. Question 3) I too saw that the delegate named MPMoviePlayerContentPreloadDidFinishNotification does not work the first time I play the movie which is totally strange. Maybe this is fixed in newest firmware? I don't know. I can't check it. Did you find any workaround for Question 3?
于 2009-12-03T10:25:34.240 回答