move startTime before xhr call
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -638,6 +638,8 @@ var | ... | @@ -638,6 +638,8 @@ var |
638 | segment.uri); | 638 | segment.uri); |
639 | } | 639 | } |
640 | 640 | ||
641 | startTime = +new Date(); | ||
642 | |||
641 | // request the next segment | 643 | // request the next segment |
642 | segmentXhr = xhr({ | 644 | segmentXhr = xhr({ |
643 | url: segmentUri, | 645 | url: segmentUri, |
... | @@ -693,8 +695,6 @@ var | ... | @@ -693,8 +695,6 @@ var |
693 | updateCurrentPlaylist(); | 695 | updateCurrentPlaylist(); |
694 | } | 696 | } |
695 | }); | 697 | }); |
696 | |||
697 | startTime = +new Date(); | ||
698 | }; | 698 | }; |
699 | 699 | ||
700 | // load the MediaSource into the player | 700 | // load the MediaSource into the player | ... | ... |
-
Please register or sign in to post a comment