-
-
Save sendbird-community/361643fee83b5d48c4aed621c8671927 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addSendbirdCallsListener = (room) => { | |
const target = document.getElementById('remote_video_target') | |
room.on('remoteParticipantStreamStarted', (remoteParticipant) => { | |
if(sendbirdUser.sendbirdUserId == remoteParticipant.user.userId) return | |
const remoteMediaView = document.createElement('video'); | |
remoteMediaView.autoplay = true; | |
remoteParticipant.setMediaView(remoteMediaView); | |
target.appendChild(remoteMediaView); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment