Skip to content

Commit

Permalink
Work on video
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjarnason committed Dec 14, 2018
1 parent 30250d1 commit 54cbb22
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions client_app/src/yp-media-recorder/yp-media-recorder.html
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,15 @@ <h2>[[t('noDevicesFound')]]</h2>
}

_startRecording () {
this.recorder.startRecording();
this.recordSecondsLeft = this.maxLength;
this.set('isRecording', true);
this.$$("#recordingIcon").className = "recording";
this._recordingTimer();
if (!this.isRecording) {
this.recorder.startRecording();
this.recordSecondsLeft = this.maxLength;
this.set('isRecording', true);
this.$$("#recordingIcon").className = "recording";
this._recordingTimer();
} else {
this._stopRecording();
}
}

_stopRecording () {
Expand Down

0 comments on commit 54cbb22

Please sign in to comment.