Skip to content

Commit

Permalink
add official method for accessing HTML media element (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbucket authored and ismena committed Mar 16, 2017
1 parent 82f6bac commit 8f8c6d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,16 @@ shaka.Player.prototype.resetConfiguration = function() {
};


/**
* @return {HTMLMediaElement} A reference to the HTML Media Element passed
* in during initialization.
* @export
*/
shaka.Player.prototype.getMediaElement = function() {
return this.video_;
};


/**
* @return {shaka.net.NetworkingEngine} A reference to the Player's networking
* engine. Applications may use this to make requests through Shaka's
Expand Down

0 comments on commit 8f8c6d4

Please sign in to comment.