public async Task SendFabricTransportChange(int delay, string relayType,
                                                    List <IceCandidate> localIceCandidates, List <IceCandidate> remoteIceCandidates,
                                                    IceCandidatePair currIceCandidatePairObj, IceCandidatePair prevIceCandidatePairObj,
                                                    string newIceConnectionState, string prevIceConnectionState)
        {
            FabricTransportChangeData ftcd = new FabricTransportChangeData();

            ftcd.localID                = localID;
            ftcd.originID               = originID;
            ftcd.deviceID               = deviceID;
            ftcd.timestamp              = DateTime.UtcNow.ToUnixTimeStampMiliseconds();
            ftcd.remoteID               = remoteID;
            ftcd.connectionID           = connectionID;
            ftcd.localIceCandidates     = localIceCandidates;
            ftcd.remoteIceCandidates    = remoteIceCandidates;
            ftcd.currIceCandidatePair   = currIceCandidatePairObj;
            ftcd.prevIceCandidatePair   = prevIceCandidatePairObj;
            ftcd.currIceConnectionState = newIceConnectionState;
            ftcd.prevIceConnectionState = prevIceConnectionState;
            ftcd.delay     = delay;
            ftcd.relayType = relayType;

            Debug.WriteLine("FabricTransportChange: ");
            await callstats.FabricTransportChange(ftcd);
        }
Ejemplo n.º 2
0
 public async Task FabricTransportChange(FabricTransportChangeData fabricTransportChangeData)
 {
     await SendRequest(fabricTransportChangeData, UrlBuilder(Host.events.ToString(),
                                                             $"/v1/apps/{_appID}/conferences/{_confID}/{_ucID}/events/fabric/transportchange"));
 }