private IEnumerator GetStatus()
    {
        // Debug.Log("GetStatus");

        statusRequest         = UnityWebRequest.Get(statusURL);
        statusRequest.timeout = 3;

        yield return(statusRequest.SendWebRequest());

        if (statusRequest.isNetworkError || statusRequest.isHttpError)
        {
            Debug.Log(statusRequest.error);
            connected = false;
        }
        else
        {
            try
            {
                status = JsonUtility.FromJson <ICEStatus>(statusRequest.downloadHandler.text);
                ProcessStatus();
            }
            catch
            {
                Debug.Log("Could not load ICEStatus JSON");
                connected = false;
            }
        }

        yield return(new WaitForSeconds(waitTime));

        StartCoroutine(GetStatus());
    }
Пример #2
0
        internal QLEvent(IntPtr eventHandle, int callHandle, string placeId, EventType type, string callerName,
                         string calleeName, int userCode, string reason,
                         int wndWidth, int wndHeight,
                         bool plugDeviceStatus, string plugDeviceName, string deviceHandle, string ipAddr, CallMode callMode,
                         int streamId, int activeSpeakerStreamId, int remoteVideoChannelNum, string remoteChannelDisplayName, bool isActiveSpeaker, int isTalkingFlag, string regID,
                         string sipCallId, string version, string serialNumber, string notBefore, string notAfter,
                         string issuer, string subject, string signatureAlgorithm, string fingerPrintAlgorithm, string fingerPrint, string publickey, string basicContraints, string keyUsage,
                         string extendedKeyUsage, string subjectAlternateNames, string pemCert, bool isCertHostNameOK, int certFailReason,
                         int certConfirmId, IntPtr transcoderTaskId, string transcoderInputFileName, ICEStatus iceStatus, string sutLiteMessage, bool isVideoOK, string mediaIPAddr, AutoDiscoveryStatus discoveryStatus)
        {
            this._eventHandle = eventHandle;
            this._callHandle  = callHandle;

            this._placeId          = placeId;
            this._eventType        = type;
            this._callerName       = callerName;
            this._calleeName       = calleeName;
            this._userCode         = userCode;
            this._reason           = reason;
            this._wndWidth         = wndWidth;
            this._wndHeight        = wndHeight;
            this._plugDeviceStatus = plugDeviceStatus;
            this._plugDeviceName   = plugDeviceName;
            this._deviceHandle     = deviceHandle;
            this._ipAddress        = ipAddr;
            this._callMode         = callMode;

            this._streamId = streamId;
            this._activeSpeakerStreamId    = activeSpeakerStreamId;
            this._remoteVideoChannelNum    = remoteVideoChannelNum;
            this._remoteChannelDisplayName = remoteChannelDisplayName;
            this._isActiveSpeaker          = isActiveSpeaker;
            this._isTalkingFlag            = isTalkingFlag;
            this._regID                   = regID;
            this._sipCallId               = sipCallId;
            this._version                 = version;
            this._serialNumber            = serialNumber;
            this._notBefore               = notBefore;
            this._notAfter                = notAfter;
            this._issuer                  = issuer;
            this._subject                 = subject;
            this._signatureAlgorithm      = signatureAlgorithm;
            this._fingerPrintAlgorithm    = fingerPrintAlgorithm;
            this._fingerPrint             = fingerPrint;
            this._publickey               = publickey;
            this._basicContraints         = basicContraints;
            this._keyUsage                = keyUsage;
            this._extendedKeyUsage        = extendedKeyUsage;
            this._subjectAlternateNames   = subjectAlternateNames;
            this._pemCert                 = pemCert;
            this._isCertHostNameOK        = isCertHostNameOK;
            this._certFailReason          = certFailReason;
            this._certConfirmId           = certConfirmId;
            this._transcoderTaskId        = transcoderTaskId;
            this._transcoderInputFileName = transcoderInputFileName;
            this._iceStatus               = iceStatus;
            this._sutLiteMessage          = sutLiteMessage;
            this._isVideoOK               = isVideoOK;
            this._mediaIPAddr             = mediaIPAddr;
            this._discoveryStatus         = discoveryStatus;
        }