AgoraIO / API-Examples

Play with AgoraSDK and have fun! Everything you need to start learning Agora.
296 stars 218 forks source link

Live Streaming uses the GlobalSettings so it does not set the user to audience when choosing that role #334

Open frank005 opened 1 year ago

frank005 commented 1 year ago

This is for the live streaming example in advanced. In liveStreaming.swift: On line 172, you are calling option.clientRoleType = GlobalSettings.shared.getUserRole()

This makes it so when the user tries to join as audience, they still join as a broadcaster, this needs to be updated to: option.clientRoleType = role