Created
September 3, 2021 07:20
-
-
Save murillo128/21f633ce111ce4ba89a44bfd9500dded 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
//Create publisher | |
const publisher = new Publish(streamId, () => { return publisherToken }); | |
//Start publishing | |
await publisher.connect({ | |
mediaStream: mediaStream, | |
sourceId: sourceId, | |
disableVideo, | |
dtx: true, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment