RTCMultiConnection icon indicating copy to clipboard operation
RTCMultiConnection copied to clipboard

Auto Open behavior of meeting room link possible?

Open izaxon opened this issue 2 years ago • 1 comments

Hi,

Is it possible to make a video conferencing link (like /demos/video-conferencing.html#3gm5449fdqo) to be "Auto Open or Join Room"? Right now the link will join an existing room, but will not auto create one if none exists.

Purpose: I want to have fixed links, like /demos/video-conferencing.html#project123room than any project member can visit, where the first visitor (re-)creates the room if no one got there first.

izaxon avatar Dec 29 '22 17:12 izaxon

Answering your question, if possible, it would be something like this:

connection.openOrJoin('room-id', function(isRoomCreated, roomid, error) {
    if (connection.isInitiator === true) {
        // you opened the room
    } else {
        // you joined it
    }
});

Please note that videos/audios cannot be automatically played (without muting) without user interaction first due to browser policy.

MediaKitApp avatar Feb 14 '23 13:02 MediaKitApp