文档

Unity Engine

Unity Engine

StartVideoModeAsync(CameraParameters, AudioState, OnVideoModeStartedCallback)

Asynchronously starts video mode.
阅读时间1 分钟最后更新于 1 个月前

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.