【问题标题】:How to Log which AVPlayerItem is playing in AVQueuePlayer?如何记录在 AVQueuePlayer 中正在播放的 AVPlayerItem?
【发布时间】:2012-03-09 18:16:39
【问题描述】:

我正在使用 AVQueuePlayer 依次播放多个音频文件。

我需要记录每个正在播放的 AVPlayerItem。

怎么做?

【问题讨论】:

    标签: iphone objective-c avplayer avqueueplayer


    【解决方案1】:

    AVQueuePlayer 具有 currentItem 属性。每次更改项目时都记录它。

    【讨论】:

    • 感谢您指出这一点!实际上 currentItem 属性来自于 AVPlayer,所以 AVQueuePlayer 继承自它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多