IRTCService.cs 1.6 KB

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