Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Sep 29, 2018
1 parent 865009a commit 86b5f93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/videojs.record.js
Expand Up @@ -243,6 +243,7 @@ class Record extends Plugin {
// hide play control
this.player.controlBar.playToggle.hide();

// trigger early warning if screen-only is not supported
if (this.getRecordType() === SCREEN_ONLY &&
'getDisplayMedia' in navigator === false) {
// screen capture not supported in this browser
Expand Down Expand Up @@ -379,10 +380,11 @@ class Record extends Plugin {
case SCREEN_ONLY:
// setup screen
this.mediaType = {
// animated GIF
// screen capture
audio: false,
video: false,
screen: true
screen: true,
gif: false
};
navigator.getDisplayMedia({
video: true
Expand Down

0 comments on commit 86b5f93

Please sign in to comment.