Skip to content

Commit

Permalink
Implement exitShow().
Browse files Browse the repository at this point in the history
  • Loading branch information
anssiko committed Jun 30, 2014
1 parent 1822888 commit 22aee1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions requestshowmedia.js
Expand Up @@ -14,6 +14,10 @@ HTMLVideoElement.prototype.requestShow = function () {
return requestShowMedia(this);
};

HTMLVideoElement.prototype.exitShow = function () {
video.player.close();
};

HTMLMediaElement.prototype.play = function (args) {
if (this.dataset.secondScreenEnabled === 'true') {
video.player.postMessage({ cmd: 'play'}, playerOrigin);
Expand Down

0 comments on commit 22aee1d

Please sign in to comment.