Class AvatarConfig
Configures the avatar to be used in the session.
public record AvatarConfig : IEquatable<AvatarConfig>
- Inheritance
-
AvatarConfig
- Implements
- Inherited Members
Properties
AudioBitrateBps
The bitrate of compressed audio.
[JsonPropertyName("audioBitrateBps")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? AudioBitrateBps { get; set; }
Property Value
- int?
AvatarName
Pre-built avatar id.
[JsonPropertyName("avatarName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? AvatarName { get; set; }
Property Value
CustomizedAvatar
Customized avatar appearance with a reference image.
[JsonPropertyName("customizedAvatar")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CustomizedAvatar? CustomizedAvatar { get; set; }
Property Value
VideoBitrateBps
The bitrate of compressed video output.
[JsonPropertyName("videoBitrateBps")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? VideoBitrateBps { get; set; }
Property Value
- int?
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a AvatarConfig object.
public static AvatarConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- AvatarConfig
The deserialized AvatarConfig object, or null if deserialization fails.