AgoraView

Attributes of the Agora custom element.

interface AgoraView {
  "video-source-type": VideoSourceType;
  uid: number;
  "channel-id": string;
  "renderer-content-mode": RenderModeType;
  "renderer-mirror": boolean;
  style: any;
}

You can use this custom element as follows:

<agora-view video-source-type="{VideoSourceType.VideoSourceCamera}" channel-id="" uid="{0}"></agora-view>

Attributes

video-source-type
The type of the video source. See VideoSourceType.
uid
The ID of the remote user.
channel-id
The channel name. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters (89 characters in total):
  • All lowercase English letters: a to z.
  • All uppercase English letters: A to Z.
  • All numeric characters: 0 to 9.
  • "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
renderer-content-mode
The video display mode. For details, see RenderModeType.
renderer-mirror
Whether to enable mirror mode when rendering video:
  • true: Enable mirror mode.
  • false: Do not enable mirror mode.
style
The inline style of elements. See style.