AVPlayer reports unexpected ~26-hour timeline

Hello,

We are seeing an issue where AVPlayer sometimes reports time values close to 95,443 seconds (~26.5 hours), even though the actual content duration is much shorter.

For example, in normal cases we see:

currentTime: ~355 seconds

duration: 6958 seconds

seekableTimeRange: 0...6958 seconds

However, in some cases AVPlayer reports values around:

currentTime: ~95443 seconds

duration: ~95449 seconds

We checked the underlying MPEG-TS segments with ffprobe. The video and audio PTS values are around 6426 seconds and are consistent with the HLS EXTINF durations, so we do not see a 95,443-second timestamp directly in the media segments.

Could you please help us understand:

1- Why can AVPlayer expose values close to 95,443 seconds?

2- Could this be related to MPEG-TS PTS wrap-around or AVFoundation timeline mapping?

3- How does AVPlayer calculate currentTime and AVPlayerItem.duration for HLS MPEG-TS content?

Interestingly, Audio Only / Now Playing mode shows the expected timeline, while video playback can expose the incorrect values.

Thank you.

AVPlayer reports unexpected ~26-hour timeline
 
 
Q