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
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