Skip to content

Commit

Permalink
move code down
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Aug 1, 2018
1 parent c346706 commit 440b162
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/js/videojs.record.js
Expand Up @@ -567,11 +567,6 @@ class Record extends Plugin {
if (!this.isProcessing()) {
this._recording = true;

if (this.autoMuteDevice) {
// unmute device
this.muteTracks(false);
}

// hide play/pause control
this.player.controlBar.playToggle.hide();

Expand Down Expand Up @@ -617,6 +612,11 @@ class Record extends Plugin {
break;
}

if (this.autoMuteDevice) {
// unmute device
this.muteTracks(false);
}

// start recording
switch (this.getRecordType()) {
case IMAGE_ONLY:
Expand Down

0 comments on commit 440b162

Please sign in to comment.