The "LIVE" badge on tvOS 15 UI

Hi!

I learnt that tvOS 15's playback has a new red "LIVE" badge next to title view. The LIVE badge appears when the video is streaming.

However, how does it know the video is live streaming and manage to display? Is the information which defines Live streaming included in metadata?

I watched WWDC 21 and read an official document but couldn't find the answer.

WWDC21: https://developer.apple.com/videos/play/wwdc2021/10191/

The is a difference between a video on demand stream and a live stream and yes this is within the metadata.

Thank you. I get it. Is it possible to hide or customize the appearance of the LIVE badge? I try to find live-related property of AVPlayerViewController, but it seems there's no relevant one.

I figured out this question by discussing with co-working engineers and reading the HLS document: https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.2.6

It seems that there's a m3u8 tag EXT-X-PLAYLIST, which defines whether the content is LIVE.

If this tag has a specific event value doesn't have a value, it's defined LIVE.

The "LIVE" badge on tvOS 15 UI
 
 
Q