Host in

Introduction

Agora supports up to 7 simultaneous video hosts to host in one single Agora channel.

Mode Description Platform
Mode A The Agora SDK captures both video and audio data. Android/iOS/Windows/Mac
Mode B The Agora SDK captures the audio data, while the users capture the video data by themselves Android/iOS

Mode A

Take host-in scenario for two users as an example:

Example 1

  1. User A sets the role as a host by calling setClientRole() ,then calls joinChannel() to join the channel.
  2. User B sets the role as a host by calling setClientRole() , then calls joinChannel() to join the channel to host in.

Example 2

  1. User A sets the role as a host by calling setClientRole() ,then calls joinChannel() to join the channel.
  2. User B calls joinChannel() as an audience, then calls setClientRole() to switch the user role from audience to host to host in.

Mode B

This mode only applies to Android and iOS. Take host-in scenario for two users as an example:

Android

  1. Capture the video data (audio is still captured by Agora SDK) and render the local video. See Configure External Video Source for details.
  2. User A sets the role as a host by calling setClientRole() ,then calls joinChannel() to join the channel.
  3. User B sets the role as a host by calling setClientRole() , then calls joinChannel() to join the channel to host in.

OR

  1. User B calls joinChannel() as an audience, then calls setClientRole() to switch the user role from audience to host to host in.

iOS

  1. Capture the video data (audio is still captured by Agora SDK) and render the local video. See Configure External Video Source for details.
  2. User A sets the role as a host by calling setClientRole() ,then calls joinChannel() to join the channel.
  3. User B sets the role as a host by calling setClientRole() , then calls joinChannel() to join the channel to host in.

OR

  1. User B calls joinChannel() as an audience, then calls setClientRole() to switch the user role from audience to host to host in.