Exemplo n.º 1
0
 public void StopPreview()
 {
     DispatchUtility.onFrame -= Update;
     PreviewTexture.Stop();
     WebCamTexture.Destroy(PreviewTexture);
     PreviewTexture    = null;
     previewBuffer     = null;
     camera            = null;
     startCallback     =
         frameCallback = null;
 }
Exemplo n.º 2
0
 public void Release()
 {
     if (!PreviewTexture)
     {
         return;
     }
     OnStart     =
         OnFrame = null;
     PreviewTexture.Stop();
     WebCamTexture.Destroy(PreviewTexture);
     PreviewTexture = null;
     previewBuffer  = null;
     dispatch.Dispose();
     dispatch = null;
     camera   = -1;
 }
Exemplo n.º 3
0
 public void Pause()
 {
     PreviewTexture.Stop();
 }