IRTCService.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using System.Collections.Generic;
  2. using Blue;
  3. /// <summary>
  4. /// 登录获取账号token---根据token创建房间---创建房间后获得url,根据url连接rtc
  5. /// 开关音视频,加入离开房间
  6. /// </summary>
  7. public interface IRTCService : IService
  8. {
  9. Dictionary<int, RTCUserInfo> mUserDic{ get; }
  10. /// <summary>
  11. /// 关闭RTC
  12. /// </summary>
  13. void CloseRTC();
  14. /// <summary>
  15. /// 登录后获取账号Token
  16. /// </summary>
  17. void GetToken();
  18. /// <summary>
  19. /// 根据Token创建房间
  20. /// </summary>
  21. void CreatRoom();
  22. /// <summary>
  23. /// 根据url连接rtc
  24. /// </summary>
  25. void ConnectByRTCUrl(string URL);
  26. /// <summary>
  27. /// 加入房间
  28. /// </summary>
  29. void JoinRoom(int roomId);
  30. /// <summary>
  31. /// 退出房间
  32. /// </summary>
  33. void LeaveRoom();
  34. /// <summary>
  35. /// 控制摄像头
  36. /// </summary>
  37. void ActiveVideo(bool active);
  38. /// <summary>
  39. /// 控制麦克风
  40. /// </summary>
  41. void ActiveAudio(bool active);
  42. /// <summary>
  43. /// 将远程视频流静音
  44. /// </summary>
  45. void MuteRemoteVideoStream(string userID, bool active);
  46. /// <summary>
  47. /// 将远程音频流静音
  48. /// </summary>
  49. void MuteRemoteAudioStream(string userID, bool active);
  50. /// <summary>
  51. /// 视频静音
  52. /// </summary>
  53. void MuteVideo(bool active);
  54. /// <summary>
  55. /// 音频静音
  56. /// </summary>
  57. void MuteAudio(bool active);
  58. /// <summary>
  59. /// 打开本地视频
  60. /// </summary>
  61. void LocalVideo(bool active);
  62. /// <summary>
  63. /// 打开本地音频
  64. /// </summary>
  65. void LoacalAudio(bool active);
  66. }