StartVideoModeAsync(CameraParameters, AudioState, OnVideoModeStartedCallback)
Asynchronously starts video mode.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Windows.WebCam
- Assembly: UnityEngine.CoreModule
public void StartVideoModeAsync(CameraParameters setupParams, VideoCapture.AudioState audioState, VideoCapture.OnVideoModeStartedCallback onVideoModeStartedCallback)
Parameters
The various settings that should be applied to the web camera.
Indicates how audio should be recorded.
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.