AgoraCustomPeer.cs 807 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class AgoraCustomPeer
  5. {
  6. public string peerId;
  7. public string peerName;
  8. public string peerType;
  9. /// <summary>
  10. /// 是否支持语音
  11. /// </summary>
  12. public bool isAudio;
  13. /// <summary>
  14. /// 是否支持视频
  15. /// </summary>
  16. public bool isVideo;
  17. /// <summary>
  18. /// 是否打开语音
  19. /// </summary>
  20. public bool isOpenAduio;
  21. /// <summary>
  22. /// 是否打开视频
  23. /// </summary>
  24. public bool isOpenVideo;
  25. public void AgoraInit(string peerid)
  26. {
  27. this.peerId = peerid;
  28. isAudio = false;
  29. isVideo = false;
  30. isOpenAduio = true;
  31. isOpenVideo = true;
  32. }
  33. public void SetName(string name)
  34. {
  35. this.peerName = name;
  36. }
  37. }