Class Music

All Implemented Interfaces:
Client

public class Music extends MusicClient
  • Field Details

  • Constructor Details

    • Music

      public Music()
    • Music

      public Music(@NotNull @NotNull ClientOptions options)
  • Method Details

    • getBaseClientConfig

      @NotNull public @NotNull ClientConfig getBaseClientConfig(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface)
      Description copied from class: NonMusicClient
      Retrieves a base client config payload to be used for requests.
      Specified by:
      getBaseClientConfig in class MusicClient
      Parameters:
      httpInterface - The HTTP interface to use for fetching a config, if applicable.
      Returns:
      A client configuration.
    • supportsFormatLoading

      public boolean supportsFormatLoading()
      Specified by:
      supportsFormatLoading in interface Client
      Overrides:
      supportsFormatLoading in class MusicClient
      Returns:
      True, if this client can be used for loading playback URLs.
    • preparePlayback

      public void preparePlayback(@NotNull @NotNull YoutubeAudioSourceManager source, @NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull @NotNull String videoId) throws IOException
      Throws:
      IOException
    • getPoToken

      @Nullable public @Nullable String getPoToken()
    • supportsSabrPlayback

      public boolean supportsSabrPlayback()
      Returns:
      true only when this client expects SABR formats.
    • getPlayerParams

      @NotNull public @NotNull String getPlayerParams()
      Returns:
      The parameters to use for playback. May be null, which will avoid populating the "params" field in payloads.
    • getOptions

      @NotNull public @NotNull ClientOptions getOptions()
    • getIdentifier

      @NotNull public @NotNull String getIdentifier()
      Returns:
      The unique identifier for this client.