Class TrackFormats
java.lang.Object
dev.lavalink.youtube.track.format.TrackFormats
-
Constructor Summary
ConstructorsConstructorDescriptionTrackFormats(@NotNull List<StreamFormat> formats, @NotNull String playerScriptUrl) TrackFormats(@NotNull List<StreamFormat> formats, @NotNull String playerScriptUrl, @Nullable String serverAbrStreamingUrl, @Nullable String videoPlaybackUstreamerConfig) -
Method Summary
Modifier and TypeMethodDescription@NotNull StreamFormat@NotNull List<StreamFormat>@NotNull String@Nullable String@Nullable String
-
Constructor Details
-
TrackFormats
public TrackFormats(@NotNull @NotNull List<StreamFormat> formats, @NotNull @NotNull String playerScriptUrl) -
TrackFormats
public TrackFormats(@NotNull @NotNull List<StreamFormat> formats, @NotNull @NotNull String playerScriptUrl, @Nullable @Nullable String serverAbrStreamingUrl, @Nullable @Nullable String videoPlaybackUstreamerConfig)
-
-
Method Details
-
getFormats
-
getPlayerScriptUrl
-
getServerAbrStreamingUrl
- Returns:
- The server ABR streaming URL used for SABR playback, or
nullif unavailable.
-
getVideoPlaybackUstreamerConfig
- Returns:
- The base64 videoPlaybackUstreamerConfig required for SABR requests, or
null.
-
getBestFormat
-