This commit is contained in:
Дамян Минков 2016-06-14 23:05:14 +00:00 committed by GitHub
commit bade08ec3c
1 changed files with 2 additions and 2 deletions

View File

@ -1480,7 +1480,7 @@ export default {
APP.UI.addListener(
UIEvents.VIDEO_DEVICE_CHANGED,
(cameraDeviceId) => {
createLocalTracks(['video'])
createLocalTracks(['video'], cameraDeviceId)
.then(([stream]) => {
this.useVideoStream(stream);
console.log('switched local video device');
@ -1496,7 +1496,7 @@ export default {
APP.UI.addListener(
UIEvents.AUDIO_DEVICE_CHANGED,
(micDeviceId) => {
createLocalTracks(['audio'])
createLocalTracks(['audio'], null, micDeviceId)
.then(([stream]) => {
this.useAudioStream(stream);
console.log('switched local audio device');