|
@@ -220,6 +220,7 @@ public class AgoraVideoAudioManager : SingletonMono<AgoraVideoAudioManager>
|
|
|
|
|
|
AgoraVideoAudioManager.Instance.listCustomPeer.Clear();
|
|
|
AgoraVideoAudioManager.Instance.listCustomPeer = new List<CustomPeer>();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public void VuforiaLeaveChannel()
|
|
@@ -252,7 +253,7 @@ public class AgoraVideoAudioManager : SingletonMono<AgoraVideoAudioManager>
|
|
|
Debug.Log(" RemAtPeeridUid " + peerid + " " + dicPeeridAndUid[peerid]);
|
|
|
dicPeeridAndUid.Remove(peerid);
|
|
|
|
|
|
- CloseAgoraMainImage(peerid, false);
|
|
|
+
|
|
|
|
|
|
for (int i = 0; i < listCustomPeer.Count; i++)
|
|
|
{
|
|
@@ -262,12 +263,6 @@ public class AgoraVideoAudioManager : SingletonMono<AgoraVideoAudioManager>
|
|
|
|
|
|
}
|
|
|
|
|
|
- private void CloseAgoraMainImage(string peerid, bool isOpen)
|
|
|
- {
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -313,12 +308,7 @@ public class AgoraVideoAudioManager : SingletonMono<AgoraVideoAudioManager>
|
|
|
|
|
|
public void EnableLoacalAudio( bool isAudio)
|
|
|
{
|
|
|
- if (isAudio)
|
|
|
- StudioRtc.Instance.me.cIdA = "Audio";
|
|
|
-
|
|
|
- int msg = RtcEngine.MuteLocalAudioStream(!isAudio);
|
|
|
-
|
|
|
-
|
|
|
+ int msg = RtcEngine.EnableLocalAudio(isAudio);
|
|
|
switch (msg)
|
|
|
{
|
|
|
case 0:
|
|
@@ -466,12 +456,12 @@ public class AgoraVideoAudioManager : SingletonMono<AgoraVideoAudioManager>
|
|
|
case REMOTE_VIDEO_STATE_REASON.REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED:
|
|
|
|
|
|
listCustomPeer[i].isVideo = false;
|
|
|
- CloseAgoraMainImage(listCustomPeer[i].peerId, false);
|
|
|
+
|
|
|
break;
|
|
|
case REMOTE_VIDEO_STATE_REASON.REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED:
|
|
|
|
|
|
listCustomPeer[i].isVideo = true;
|
|
|
- CloseAgoraMainImage(listCustomPeer[i].peerId, true);
|
|
|
+
|
|
|
break;
|
|
|
case REMOTE_VIDEO_STATE_REASON.REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE:
|
|
|
|
|
@@ -500,24 +490,7 @@ public class AgoraVideoAudioManager : SingletonMono<AgoraVideoAudioManager>
|
|
|
|
|
|
public void RemoteAudioStateChanged(uint uid, REMOTE_AUDIO_STATE state, REMOTE_AUDIO_STATE_REASON reason)
|
|
|
{
|
|
|
-
|
|
|
Debug.Log("RemoteAudioStateChanged " + uid);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
for (int i = 0; i < listCustomPeer.Count; i++)
|
|
|
{
|