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
b986833f
authored
2014-10-27 18:29:22 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
When creating new playlist loader, dispose previous one, if exists
1 parent
c8629df3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
b986833
...
...
@@ -101,6 +101,11 @@ videojs.Hls.prototype.handleSourceOpen = function() {
sourceBuffer
.
appendBuffer
(
this
.
segmentParser_
.
getFlvHeader
());
this
.
mediaIndex
=
0
;
if
(
this
.
playlists
)
{
this
.
playlists
.
dispose
();
}
this
.
playlists
=
new
videojs
.
Hls
.
PlaylistLoader
(
this
.
src_
,
settings
.
withCredentials
);
this
.
playlists
.
on
(
'loadedmetadata'
,
videojs
.
bind
(
this
,
function
()
{
...
...
Please
register
or
sign in
to post a comment