MenuMenu

RTCMultiConnection.autoCreateMediaElement

Disable default mediaElement

How to use

connection.autoCreateMediaElement = false;
connection.onstream = function(event) {
    alert(typeof event.mediaElement === 'undefined');

    var video = document.createElement('video');
    video.srcObject = event.stream;
    connection.videosContainer.appendChild(video);
};