Class YouTubeTrackExtensions
Reads the YouTube audio tracks NodeLink reports for a video.
public static class YouTubeTrackExtensions
- Inheritance
-
YouTubeTrackExtensions
- Inherited Members
Methods
GetYouTubeAudioTracks(Track)
The audio tracks NodeLink reports for a YouTube video, read out of a JSON string in PluginInfo.
public static IReadOnlyList<YouTubeAudioTrack>? GetYouTubeAudioTracks(this Track track)
Parameters
trackTrackThe track to read the audio tracks from.
Returns
- IReadOnlyList<YouTubeAudioTrack>
The video's alternate audio tracks, null when the track carries no readable audio tracks, tracks from Lavalink, locally decoded tracks and server echoes carry none.
Remarks
Null when there is nothing to read (e.g. the track is not from YouTube), empty when the video has no alternate audio tracks.
Null also when the embedded JSON is malformed or the member is not a string.
Exceptions
- ArgumentNullException
trackis null.