Class TrackFormats

java.lang.Object
dev.lavalink.youtube.track.format.TrackFormats

public class TrackFormats extends Object
  • 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

      @NotNull public @NotNull List<StreamFormat> getFormats()
    • getPlayerScriptUrl

      @NotNull public @NotNull String getPlayerScriptUrl()
    • getServerAbrStreamingUrl

      @Nullable public @Nullable String getServerAbrStreamingUrl()
      Returns:
      The server ABR streaming URL used for SABR playback, or null if unavailable.
    • getVideoPlaybackUstreamerConfig

      @Nullable public @Nullable String getVideoPlaybackUstreamerConfig()
      Returns:
      The base64 videoPlaybackUstreamerConfig required for SABR requests, or null.
    • getBestFormat

      @NotNull public @NotNull StreamFormat getBestFormat()