-
-
Save murillo128/6d22fde4ba9dedfe554b0a0f1807b487 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
//Add event listeners | |
millicastViewer.on("track", (event) => { | |
{ | |
console.log("ontrack",event) | |
//Get track and transceiver from event | |
const track = event.track; | |
const transceiver = event.transceiver; | |
//Get mid | |
const mediaId = transceiver.mid; | |
}); | |
viewer.addRemoteTrack("video",[new MediaStream()]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment