예제 #1
0
 public void InitAcquisition(double acquisitionDelay, string streamId, ImageSendingSocket.OnSocketClose callbackOnSocketClose)
 {
     acquisitionQueue      = new Queue <FrameToAcquire>();
     imageDelayAcquisition = acquisitionDelay;
     Debug.Log("Acquisition Delay: " + imageDelayAcquisition);
     if (stopAcquisition)
     {
         acquisitionController.StopAcquisition(0);
     }
     acquisitionController = this.GetComponent <AcquisitionController>();
     acquisitionController.InitAcquisition(streamId, OnFrameSendError, callbackOnSocketClose);
     stopAcquisition = false;
 }
예제 #2
0
 public string InitHost(ImageSendingSocket.OnSocketClose callbackOnSocketClose)
 {
     acquisitionController = this.GetComponent <AcquisitionController>();
     return(acquisitionController.InitAcquisition("", OnFrameSendError, callbackOnSocketClose));
 }