Example #1
0
 private void OnVideoCaptureInstanceCreated(VideoCapture videoCapture)
 {
     if (videoCapture != null)
     {
         VideoCapture = videoCapture;
         VideoCaptureCreated?.Invoke(VideoCapture);
     }
 }
Example #2
0
    private void OnVideoCaptureInstanceCreated(VideoCapture videoCapture)
    {
        if (videoCapture == null)
        {
            Debug.LogError("Creating the VideoCapture object failed.");
            return;
        }

        CameraStreamHelper.videoCapture = videoCapture;
        VideoCaptureCreated?.Invoke(videoCapture);
    }