using LitJson; using System.Collections.Generic; using UnityEngine; public class SCRtcAndroidEngine : SCRtcEngine { public void setProduce(string msg) { return; } public string getwifi() { return ""; } //调节他人音量 public double GetaudioMe() { double d = 0.0f; return d; } //调节他人音量 public double GetaudioPeer(string consumerId) { double d = 0.0f; return d; } SDKCallbackListener sdk; //增加监听 public void addListener() { if (sdk == null) { sdk = new SDKCallbackListener(); } } override public void send(Queue jsondata) { JsonData data; if (jsondata.Count > 0) { data = jsondata.Dequeue(); switch (data["action"].ToString()) { case "InitRTC": break; case "changeVideo": break; case "setMute": break; case "sendVideo": break; case "enableVideoOnly": break; case "enableAudioOnly": break; case "openSpeaker": break; case "closeSpeaker": break; case "setVolume": break; case "sendMic": break; case "openRev": break; case "closeRev": break; case "Close": SCRtcFactory.Instance.isClose = true; break; case "addTextureID": break; case "audioPeerChange": break; case "audioMeChange": break; case "changePeerVideo": break; case "changeName": break; case "joinRoom": break; case "GetaudioMe": break; case "GetaudioPeer": break; case "onSocketMesseage": break; case "initRtpCapabilities": break; case "createRecvTransport": break; case "createSendTransport": break; case "onNewConsumer": break; case "getDevice": break; case "setProduce": break; case "startCamera": break; case "stopCamera": break; case "addCameraLocal": break; } } } }