Rendering audio only

This tutorial will walk you through the steps of starting and rendering an audio only conference using the Between API. Since the video and audio tracks come in as the same DOM element, you will need to disable the video track through the LocalParticipant object as it's created.


// ......
// with conference already setup

let localParticipant;
let remoteParticpants = {}
            
conf.on("localParticipant", (lp) => {
    lp = localParticipant
    lp.publishVideo(false)
})

conf.on("participantJoined", (participant) => {
    participant.on('videoCreated', (video) => {      
        video.enabled = false          
        document.getElementById('remoteStreams').append(video)
    })

    remoteParticpants[participant.id] = participant
})