【发布时间】:2013-10-31 20:13:55
【问题描述】:
在处理一个使用 HTTP Live Streaming (HLS) 的 iOS 项目时,我们发现当应用使用 AirPlay 在 Apple TV 上播放流媒体时, AVPlayer 的currentItem 的currentDate 属性返回nil。换句话说:
AVPlayerItem *item = [player currentItem]; //Where "player" is the AVPlayer object.
NSDate *date = [item currentDate]; //date is nil, when using AirPlay.
那么,是否有可能通过其他方式获得该 currentDate ?
【问题讨论】:
标签: ios iphone avplayer http-live-streaming airplay