VoiceLiveModelFactory.VideoParams Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.
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.