12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class AgoraCustomPeer
- {
- public string peerId;
- public string peerName;
- public string peerType;
- /// <summary>
- /// 是否支持语音
- /// </summary>
- public bool isAudio;
- /// <summary>
- /// 是否支持视频
- /// </summary>
- public bool isVideo;
- /// <summary>
- /// 是否打开语音
- /// </summary>
- public bool isOpenAduio;
- /// <summary>
- /// 是否打开视频
- /// </summary>
- public bool isOpenVideo;
- public void AgoraInit(string peerid)
- {
- this.peerId = peerid;
- isAudio = false;
- isVideo = false;
- isOpenAduio = true;
- isOpenVideo = true;
- }
- public void SetName(string name)
- {
- this.peerName = name;
- }
- }
|