IRTCService.cs 1.5 KB

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