devlucky/react-micdrop

Error handling

zzarcon opened this issue · 0 comments

Different error might happen while trying to play the audio:

We should handle those accordingly and notify consumer:

import MicDrop from 'react-micdrop'

<MicDrop 
  src="nope"
  isPlaying={this.state.isPlaying}
  onError={() => this.setState({isPlaying: false})}
/>