Share via


VoiceLiveModelFactory.VideoParams Method

Definition

Video streaming parameters for avatar.

public static Azure.AI.VoiceLive.VideoParams VideoParams(int? bitrate = default, string codec = default, Azure.AI.VoiceLive.VideoCrop crop = default, Azure.AI.VoiceLive.VideoResolution resolution = default, Azure.AI.VoiceLive.VideoBackground background = default, int? gopSize = default);
static member VideoParams : Nullable<int> * string * Azure.AI.VoiceLive.VideoCrop * Azure.AI.VoiceLive.VideoResolution * Azure.AI.VoiceLive.VideoBackground * Nullable<int> -> Azure.AI.VoiceLive.VideoParams
Public Shared Function VideoParams (Optional bitrate As Nullable(Of Integer) = Nothing, Optional codec As String = Nothing, Optional crop As VideoCrop = Nothing, Optional resolution As VideoResolution = Nothing, Optional background As VideoBackground = Nothing, Optional gopSize As Nullable(Of Integer) = Nothing) As VideoParams

Parameters

bitrate
Nullable<Int32>

Bitrate in bits per second (e.g., 2000000 for 2 Mbps).

codec
String

Codec to use for encoding. Currently only 'h264' is supported.

crop
VideoCrop

Optional cropping settings for the video stream.

resolution
VideoResolution

Optional resolution settings for the video stream.

background
VideoBackground

Optional background settings for the video. Allows specifying either a solid color or an image URL.

gopSize
Nullable<Int32>

Group of Pictures (GOP) size for video encoding. Controls the interval between keyframes, affecting compression efficiency and seeking performance.

Returns

A new VideoParams instance for mocking.

Applies to