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