Skip to content

Commit

Permalink
fix: check mediaDevices for inline recording
Browse files Browse the repository at this point in the history
  • Loading branch information
fbaiodias committed May 9, 2019
1 parent bbf6f51 commit 7df2cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class VideoRecorder extends Component {

componentDidMount () {
const isInlineRecordingSupported =
!!window.MediaSource && !!window.MediaRecorder
!!window.MediaSource && !!window.MediaRecorder && !!navigator.mediaDevices

const isVideoInputSupported =
document.createElement('input').capture !== undefined
Expand Down Expand Up @@ -184,7 +184,7 @@ export default class VideoRecorder extends Component {
this.turnOffCamera()
}

turnOnCamera (cameraType) {
turnOnCamera () {
if (this.props.onTurnOnCamera) {
this.props.onTurnOnCamera()
}
Expand Down

0 comments on commit 7df2cb1

Please sign in to comment.