feat(audio-only): be able to lock a browser into capturing audio only (#2125)

* feat(audio-only): be able to lock a browser into capturing audio only

* squash: try to make string more clear about audio only support

* squash: final strings
This commit is contained in:
virtuacoplenny
2017-11-09 13:59:16 -08:00
committed by bbaldino
parent 81e36b2a26
commit 5c464a7bda
6 changed files with 87 additions and 18 deletions

View File

@@ -513,6 +513,10 @@ class DeviceSelectionDialogBase extends Component {
this._disposeVideoPreview()
.then(() => createLocalTrack('video', deviceId))
.then(jitsiLocalTrack => {
if (!jitsiLocalTrack) {
return Promise.reject();
}
this.setState({
previewVideoTrack: jitsiLocalTrack,
previewVideoTrackError: null