Overview of the Live feature state
The Live feature tracks when playback is at the live edge and the type of live window provided by the stream.
liveEdgeStart: The playback time where the live edge begins. Playback is considered live whencurrentTime >= liveEdgeStart.targetLiveWindow: Indicates the window type.0represents a sliding live window,Infinityrepresents a live event with playback history, andNaNindicates on-demand or unknown.
Both values are NaN if the media does not provide live-edge information. To check for live playback, use !Number.isNaN(targetLiveWindow) rather than checking the duration property.