Skip to content

Commit

Permalink
Merge pull request #11 from boushley/broadcast-level-details
Browse files Browse the repository at this point in the history
Broadcast level loaded event on tech.
  • Loading branch information
shacharz committed Nov 22, 2016
2 parents 982a978 + 6d4ed21 commit a26a627
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/videojs5.hlsjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
}
});

Object.keys(Hls.Events).forEach(function(key) {
var eventName = Hls.Events[key];
hls.on(eventName, function(event, data) {
tech.trigger(eventName, data);
});
});

// attach hlsjs to videotag
hls.attachMedia(el);
hls.loadSource(source.src);
Expand Down

0 comments on commit a26a627

Please sign in to comment.