0

如何监控媒体播放器的每秒,以便可以根据视频时间执行动作?

解决方案可能是计时器,但我希望有一个标准的方法。

4

1 回答 1

0

What do you mean with "MediaPlayer"? Are talking about a QTMovieView (QTMovieView Class Reference)?

If so, you can get the QTMovie object by calling:

[myQTMovieView movie]

and then get its

[aMovie currentTime]

Please note that this only applies to OS X and not to iOS. Please specify more details about your question.

于 2013-02-07T15:34:52.050 回答