Skip to content

Commit

Permalink
demo page: update audio track info on switch
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Jul 4, 2016
1 parent ce78140 commit 98a63f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ <h4> Stats Display </h4>
$("#HlsStatus").text(data.audioTracks.length + " audio tracks found");
updateAudioTrackInfo();
});
hls.on(Hls.Events.AUDIO_TRACK_SWITCH,function(event,data) {
updateAudioTrackInfo();
});
hls.on(Hls.Events.LEVEL_LOADED,function(event,data) {
events.isLive = data.details.live;
var event = {
Expand Down

0 comments on commit 98a63f4

Please sign in to comment.