Fix TypeError when one of audioTracks or videoTracks was undefined
This commit is contained in:
parent
61fa2d8ed1
commit
f72e3bf552
@ -594,7 +594,8 @@ export default {
|
||||
videoTrackCreationError);
|
||||
}
|
||||
|
||||
return audioTracks.concat(videoTracks);
|
||||
return (audioTracks || [])
|
||||
.concat(videoTracks || []);
|
||||
});
|
||||
} else {
|
||||
promise = createAudioTrack();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user