IRTCService.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System.Collections.Generic;
  2. using Blue;
  3. /// <summary>
  4. /// 根据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 CreatRoom();
  18. /// <summary>
  19. /// 根据url连接rtc
  20. /// </summary>
  21. void ConnectByRTCUrl(string URL);
  22. /// <summary>
  23. /// 加入房间
  24. /// </summary>
  25. void JoinRoom(int roomId);
  26. /// <summary>
  27. /// 退出房间
  28. /// </summary>
  29. void LeaveRoom();
  30. /// <summary>
  31. /// 控制摄像头
  32. /// </summary>
  33. void ActiveVideo(bool active);
  34. /// <summary>
  35. /// 控制麦克风
  36. /// </summary>
  37. void ActiveAudio(bool active);
  38. /// <summary>
  39. /// 将远程视频流静音
  40. /// </summary>
  41. void MuteRemoteVideoStream(string userID, bool active);
  42. /// <summary>
  43. /// 将远程音频流静音
  44. /// </summary>
  45. void MuteRemoteAudioStream(string userID, bool active);
  46. /// <summary>
  47. /// 视频静音
  48. /// </summary>
  49. void MuteVideo(bool active);
  50. /// <summary>
  51. /// 音频静音
  52. /// </summary>
  53. void MuteAudio(bool active);
  54. /// <summary>
  55. /// 打开本地视频
  56. /// </summary>
  57. void LocalVideo(bool active);
  58. /// <summary>
  59. /// 打开本地音频
  60. /// </summary>
  61. void LoacalAudio(bool active);
  62. }