Table of Contents

Class YouTubeAudioTrack

Namespace
Nyra.Entities
Assembly
Nyra.dll

One audio track of a multi-audio YouTube video, such as a dubbed language.

public sealed record YouTubeAudioTrack : IEquatable<YouTubeAudioTrack>
Inheritance
YouTubeAudioTrack
Implements
Inherited Members

Remarks

NodeLink reports them.

Properties

Id

Identifier to pass as AudioTrackId.

[JsonPropertyName("id")]
[JsonInclude]
public string Id { get; }

Property Value

string

Remarks

An entry whose id is an explicit wire null is dropped from the list, an entry with no id member carries an empty one, empty also when every entry was dropped. Do not pass an empty one on, the play options guard rejects it.

IsAutoDubbed

Whether the track was auto-dubbed by the platform rather than uploaded.

[JsonPropertyName("isAutoDubbed")]
[JsonInclude]
[JsonConverter(typeof(TolerantBooleanConverter))]
public bool IsAutoDubbed { get; }

Property Value

bool

Remarks

A null (a hostile or broken entry) reads as false, the entry survives, a failed read would cost the whole list.

IsDefault

Whether the track plays when none is selected.

[JsonPropertyName("isDefault")]
[JsonInclude]
[JsonConverter(typeof(TolerantBooleanConverter))]
public bool IsDefault { get; }

Property Value

bool

Remarks

A null (a hostile or broken entry) reads as false, the entry survives, a failed read would cost the whole list.

Name

Display name, such as the language of the dub.

[JsonPropertyName("name")]
[JsonInclude]
public string? Name { get; }

Property Value

string

Remarks

Null when the server sent none.