Exemplo n.º 1
0
        private void InitVideoStreamingPerformance(ulong clientId, Stream stream)
        {
            string streamId = "";
            double acquisitionDelay = 0d;

            using (PooledBitReader reader = PooledBitReader.Get(stream))
            {
                streamId = reader.ReadString().ToString();
                acquisitionDelay = reader.ReadDouble();
            }

            Debug.Log("InitVideoStreaming on client");

            totalSendedFrame = long.MinValue;
            this.lastRPCframeID = long.MinValue;

            schedulerController = GetComponent<SchedulerController>();
            schedulerController.InitAcquisition(acquisitionDelay, streamId, OnClientClose);

            this.listLostFrameId = new List<long>();
        }
Exemplo n.º 2
0
 public string InitHost()
 {
     schedulerController = GetComponent<SchedulerController>();
     return schedulerController.InitHost(OnHostSocketClose);
 }