Fall back to using label for preferred devices (#4171)

* Skips setting undefined device id to sink in audio preview.

* Fallbacks to use labels for user selected devices.

* Fixes comment.
This commit is contained in:
Дамян Минков
2019-05-07 09:53:01 +01:00
committed by GitHub
parent 3f4a71c26d
commit c040b3a7dd
12 changed files with 261 additions and 36 deletions
@@ -113,6 +113,7 @@ class AudioOutputPreview extends Component<Props> {
*/
_setAudioSink() {
this._audioElement
&& this.props.deviceId
&& this._audioElement.setSinkId(this.props.deviceId);
}
}