RtcConnection
包含连接信息的类。
ArkTS
export class RtcConnection {
public localUid:number = 0;
public channelId:string = "";
constructor(channelId:string,uid:number) {
this.channelId = channelId;
this.localUid = uid;
}
}
channelId
频道名。
localUid
本地用户 ID。