Share via


VoiceLiveModelFactory.VideoBackground(String, String) Method

Definition

Defines a video background, either a solid color or an image URL (mutually exclusive).

public static Azure.AI.VoiceLive.VideoBackground VideoBackground(string color = default, string imageUrl = default);
static member VideoBackground : string * string -> Azure.AI.VoiceLive.VideoBackground
Public Shared Function VideoBackground (Optional color As String = Nothing, Optional imageUrl As String = Nothing) As VideoBackground

Parameters

color
String

Background color in hex format (e.g., #00FF00FF). Cannot be set if image_url is provided.

imageUrl
String

Background image URL. Cannot be set if color is provided.

Returns

A new VideoBackground instance for mocking.

Applies to