如何判断 QTMovie 何时开始播放?
因此,QTMovie
有 QTMovieDidEndNotification
,但没有 QTMovieDidStartNotification
。 当 QTMovie
开始播放时我如何收到通知?
So QTMovie
s have QTMovieDidEndNotification
, but no QTMovieDidStartNotification
. How can I be notified when a QTMovie
starts playing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
回答我自己的问题:当电影开始播放时,
QTMovieRateDidChangeNotification
被激活。 当然,文档实际上并没有记录这一点。 呸。Answering my own question: the
QTMovieRateDidChangeNotification
is activated when the movie starts to play. Of course the documentation doesn't actually document that. Bah.当速率分别变为 100% 和 0% 时,Quicktime 会查看开始和暂停。 QTMovieRateDidChangeNotification 是您想要的,并检查适当的速率。
Start and pause are viewed by Quicktime as rate changes to 100% and 0% respectively. QTMovieRateDidChangeNotification is what you want, and check for the appropriate rate.