123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using Blue;
- /// <summary>
- /// 登录获取账号token---根据token创建房间---创建房间后获得url,根据url连接rtc
- /// 开关音视频,加入离开房间
- /// </summary>
- public interface IRTCService : IService
- {
- /// <summary>
- /// 关闭RTC
- /// </summary>
- void CloseRTC();
- /// <summary>
- /// 登录后获取账号Token
- /// </summary>
- void GetToken();
- /// <summary>
- /// 根据Token创建房间
- /// </summary>
- void CreatRoom();
- /// <summary>
- /// 根据url连接rtc
- /// </summary>
- void ConnectByRTCUrl(string URL);
- /// <summary>
- /// 加入房间
- /// </summary>
- void JoinRoom(int roomId);
- /// <summary>
- /// 退出房间
- /// </summary>
- void LeaveRoom();
- /// <summary>
- /// 控制摄像头
- /// </summary>
- void ActiveVideo(bool active);
- /// <summary>
- /// 控制麦克风
- /// </summary>
- void ActiveAudio(bool active);
- /// <summary>
- /// 将远程视频流静音
- /// </summary>
- void MuteRemoteVideoStream(string userID, bool active);
- /// <summary>
- /// 将远程音频流静音
- /// </summary>
- void MuteRemoteAudioStream(string userID, bool active);
- /// <summary>
- /// 视频静音
- /// </summary>
- void MuteVideo(bool active);
- /// <summary>
- /// 音频静音
- /// </summary>
- void MuteAudio(bool active);
- /// <summary>
- /// 打开本地视频
- /// </summary>
- void LocalVideo(bool active);
- /// <summary>
- /// 打开本地音频
- /// </summary>
- void LoacalAudio(bool active);
- }
|