Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StartVideoModeAsync(CameraParameters, AudioState, OnVideoModeStartedCallback)

Asynchronously starts video mode.
Read time 1 minuteLast updated 13 days ago

Definition

public void StartVideoModeAsync(CameraParameters setupParams, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback)

Parameters

setupParams

The various settings that should be applied to the web camera.

audioState

Indicates how audio should be recorded.

onVideoModeStartedCallback

This callback will be invoked once video mode has been activated.

Remarks

Activates the web camera with the settings specified in CameraParameters. Only one VideoCapture instance can start the video mode at any given time. After starting the video mode, you can record videos via VideoCapture.StartRecordingAsync. Video mode can impact performance, so make sure to call VideoCapture.StopVideoModeAsync when you are done recording.