Handle duration a little more intelligently
- If the playlist hasn't been loaded yet, use 0. - If the playlist duration is Infinity, use the playlist duration. - If the mediaSource doesn't exist, use the playlist duration. - In all other cases, use the mediaSource's duration.
Showing
1 changed file
with
15 additions
and
3 deletions
-
Please register or sign in to post a comment