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>(); }
public string InitHost() { schedulerController = GetComponent<SchedulerController>(); return schedulerController.InitHost(OnHostSocketClose); }