hlssink3: Put EXT-X-ENDLIST for vod playlist-type.

Ideally, when player encounter PLAYLIST-TYPE is VOD, player should
not reload the playlist. For playlist-type=vod, initially we put
PLAYLIST-TYPE=EVENT, and later change it to VOD, which confuse some
players so we shold put ENDLIST here.
In any case putting ENDLIST is right thing to do to indicate no new
segment will be added to playlist.
This commit is contained in:
Rajneesh Soni 2022-07-01 20:53:13 +05:30 committed by Arun Raghavan
parent 4ff2c8f1bc
commit 08c6ab29e1

View file

@ -110,10 +110,8 @@ impl Playlist {
MediaPlaylistType::Event => {
if self.turn_vod {
self.inner.playlist_type = Some(MediaPlaylistType::Vod);
self.inner.end_list = false
} else {
self.inner.end_list = true
}
self.inner.end_list = true
}
MediaPlaylistType::Vod => self.inner.end_list = false,
},