Skip to content

Commit

Permalink
Merge pull request #2798 from epiclabsDASH/reference_debug
Browse files Browse the repository at this point in the history
Allow easy testing of player API in Ref Player
  • Loading branch information
epiclabsDASH committed Oct 3, 2018
2 parents efd9e95 + 68bf311 commit 1f8326d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/dash-if-reference-player/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ app.controller('DashController', function ($scope, sources, contributors, dashif
////////////////////////////////////////

$scope.video = document.querySelector('.dash-video-player video');
$scope.player = dashjs.MediaPlayer().create(); /* jshint ignore:line */
// store a ref in window.player to provide an easy way to play with dash.js API
window.player = $scope.player = dashjs.MediaPlayer().create(); /* jshint ignore:line */

$scope.player.on(dashjs.MediaPlayer.events.ERROR, function (e) { /* jshint ignore:line */
//use the new error callback
Expand Down

0 comments on commit 1f8326d

Please sign in to comment.