isLive method
Description
Returns true when the currently-loaded content can be considered a “live”
content.
Returns false either when not playing a live content or when no content is
loaded yet.
A content is considered as live if at least one of its media playlist:
- may continue to have future segments (i.e. no 
EXT-X-ENDLISTtag) - is neither of the 
VODnorEVENTplaylist type (e.g. noEXT-X-PLAYLIST-TYPEtag) 
Written in another way, a live content is a content whose old segments might be removed and for which new segments may be generated in the future.
Consequently its “minimum position” and “maximum position” may evolve over time.
Note that a content can stop being a live content, e.g. when the live is
finished. In that case, isLive will return false.
You can be warned when isLive’s value might have changed by listening to the
ContentInfoUpdate event. You can also know when it is
first set after a load call either by listening to
this same ContentInfoUpdate event or by calling isLive when reaching the
"Loaded" state.
Syntax
const isLive = player.isLive();
- return value:
 
boolean: Return true if the current content may be considered a live
content.