AgoraView
自定义标签的属性。
TypeScript
interface AgoraView {
"video-source-type": VideoSourceType;
uid: number;
"channel-id": string;
"renderer-content-mode": RenderModeType;
"renderer-mirror": boolean;
style: any;
}
该自定义标签的使用方式如下:
<agora-view video-source-type="{VideoSourceType.VideoSourceCamera}" channel-id="" uid="{0}"></agora-view>video-source-type
视频源的类型,详见 VideoSourceType。
uid
远端用户 ID。
renderer-content-mode
视频渲染模式,详见 RenderModeType。
renderer-mirror
渲染视频时,是否开启视频镜像:
- true: 开启镜像。
- false: 不开启镜像。
style
元素的行内样式。详见
style-attribute。