123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- 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)
- {
- 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;
-
- }
- }
- }
- }
|