Conversation

Here is a description of the different steps to create a multi-party communication with a focus on the possibility to join and leave a conference.

Check our tutorial on conference if needed to publish / subscribe your stream.

Create the conversation

        //Create the conversation
        let connectedConversation = connectedSession.getConversation(name);
    

Destroy the conversation

        //Clean up all local resources (events ...) attached to the conversation
        connectedConversation.destroy();
    

Join the conversation :

        // Join the conversation
        connectedConversation.join()
            .then(function(response) {
                //Conversation joined
            }).catch(function (err) {
                console.error('Conversation join error', err);
            });
    

Leave the conversation :

        //Leave the conversation
        connectedConversation.leave();
    

Release the stream and the camera :

        //Leave the conversation
        localStream.release();
    

Live Demo