Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将播放列表文件流式传输到 AVPlayer。播放列表中有很多文件。如何获取当前播放的音频文件?获取 URL 仅返回播放列表 url,而不是播放列表中正在播放的实际歌曲。
您可以通过此属性获取当前项目。
@interface AVPlayer (AVPlayerItemControl) /* indicates the current item of the player */ @property (nonatomic, readonly) AVPlayerItem *currentItem;