When you call createVideoElement
on the stream it will create a <video>
element, which plays both audio and video, so at that point there is no need for the <audio>
element that you created with createAudioElement
.
The browser handles synchronizing the audio and video in a single MediaStream
, so if they are consistently out of sync, you may need to file a WebRTC bug.