-
-
Save digitallysavvy/91492d8a22c2ebe405b8bc4a998555a3 to your computer and use it in GitHub Desktop.
Example snippets for setting the broadcast client role in a Agora broadcast scenario
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 broadcaster client and set the client role | |
var broadcastClient = AgoraRTC.createClient({mode: 'live', codec: 'vp8'}); | |
broadcastClient.setClientRole('host', function() { | |
console.log('Client role set as host.'); | |
}, function(e) { | |
console.log('setClientRole failed', e); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment