Class StreamingNonMusicClient

java.lang.Object
dev.lavalink.youtube.clients.skeleton.NonMusicClient
dev.lavalink.youtube.clients.skeleton.StreamingNonMusicClient
All Implemented Interfaces:
Client
Direct Known Subclasses:
Android, Ios, TvHtml5Embedded, Web

public abstract class StreamingNonMusicClient extends NonMusicClient
  • Field Details

    • DEFAULT_SIGNATURE_KEY

      protected static String DEFAULT_SIGNATURE_KEY
  • Constructor Details

    • StreamingNonMusicClient

      public StreamingNonMusicClient()
  • Method Details

    • loadFormats

      public TrackFormats loadFormats(@NotNull @NotNull YoutubeAudioSourceManager source, @NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull @NotNull String videoId) throws CannotBeLoaded, IOException
      Description copied from interface: Client
      Loads streaming formats for a video.
      Parameters:
      source - The source manager responsible for this client.
      httpInterface - The interface to use for requests.
      videoId - The ID of the video to load formats for.
      Throws:
      CannotBeLoaded - If a video doesn't exist etc.
      IOException
    • extractFormat

      protected boolean extractFormat(com.sedmelluq.discord.lavaplayer.tools.JsonBrowser formatJson, List<StreamFormat> formats, boolean isLive)