Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ad192c01
authored
2014-06-20 16:26:44 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Reset sourceBuffers when we are entering a segment that is after a discontinuity
1 parent
844d2661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
ad192c0
...
...
@@ -387,6 +387,10 @@ var
return
;
}
if
(
segment
.
discontinuity
)
{
player
.
hls
.
sourceBuffer
.
abort
();
}
// calculate the download bandwidth
player
.
hls
.
segmentXhrTime
=
(
+
new
Date
())
-
startTime
;
player
.
hls
.
bandwidth
=
(
this
.
response
.
byteLength
/
player
.
hls
.
segmentXhrTime
)
*
8
*
1000
;
...
...
Please
register
or
sign in
to post a comment