Skip to content

Commit

Permalink
log rendition switch and reason
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Mar 4, 2021
1 parent e0d3e51 commit 9ccb581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/master-playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export class MasterPlaylistController extends videojs.EventTarget {
}

switchMedia_(playlist, delay, cause) {
this.logger_(`switching media ${this.masterPlaylistLoader_.media().id} -> ${playlist.id} from ${cause}`);
this.tech_.trigger({type: 'usage', name: `vhs-rendition-change-${cause}`});
this.masterPlaylistLoader_.media(playlist);
}
Expand Down

0 comments on commit 9ccb581

Please sign in to comment.