Guard against negative media index due to manifest vs actual timing differences (#794)
* Guard against negative media index due to manifest vs actual timing differences One of the possible reasons for us getting a negative media index is that we've recorded actual segment timing information and it differs enough from the manifest's timing information that we can't properly place the first segment. In the event that we're at time 0 and the video isn't live, we can safely assume that we should get the first segment. * Change getMediaIndexForTime to return first segment when time and expired are 0
Showing
2 changed files
with
22 additions
and
5 deletions
-
Please register or sign in to post a comment