-
-
Save digitallysavvy/fd1c3eaae7bae81758a16b6de5a864ba to your computer and use it in GitHub Desktop.
Example snippets for setting the audience 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 audience client and set the client role | |
var audienceClient = AgoraRTC.createClient({mode: 'live', codec: 'vp8'}); | |
audienceClient.setClientRole('audience', function() { | |
console.log('Client role set to audience'); | |
}, 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