Working on an iOS project that uses HTTP Live Streaming (HLS), we found that when the app uses AirPlay, to play the streaming on a Apple TV, the currentDate
property of the currentItem
of the AVPlayer returns nil
. In other words:
AVPlayerItem *item = [player currentItem]; //Where "player" is the AVPlayer object.
NSDate *date = [item currentDate]; //date is nil, when using AirPlay.
So, is it possible to get that currentDate by other means?