Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference Player: Expose player to window #2634

Closed
Ismael opened this issue Jun 8, 2018 · 0 comments
Closed

Reference Player: Expose player to window #2634

Ismael opened this issue Jun 8, 2018 · 0 comments

Comments

@Ismael
Copy link

Ismael commented Jun 8, 2018

It'd be nice if you would expose the player instance to window. That would allow us to test the API directly with the reference player.

   ////////////////////////////////////////
    //
    // Player Setup
    //
    ////////////////////////////////////////

    $scope.video = document.querySelector('.dash-video-player video');
    $scope.player = dashjs.MediaPlayer().create(); /* jshint ignore:line */
+  window.player = $scope.player;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants