1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using System.Collections.Generic;
- using Blue;
- /// <summary>
- /// 根据token创建房间---创建房间后获得url,根据url连接rtc
- /// 开关音视频,加入离开房间
- /// </summary>
- public interface IRTCService : IService
- {
- Dictionary<int, RTCUserInfo> mUserDic{ get; }
- /// <summary>
- /// 根据Token创建房间
- /// </summary>
- void CreatRoom();
- /// <summary>
- /// 加入房间
- /// </summary>
- void JoinRoom(string roomId);
- /// <summary>
- /// /// 根据url连接rtc
- /// </summary>
- void ConnectByRTCUrl(string URL);
- /// <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);
- }
|