Class TvHtml5Embedded

All Implemented Interfaces:
Client

public class TvHtml5Embedded extends StreamingNonMusicClient
  • Field Details

  • Constructor Details

    • TvHtml5Embedded

      public TvHtml5Embedded()
    • TvHtml5Embedded

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

    • getBaseClientConfig

      @NotNull protected @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 NonMusicClient
      Parameters:
      httpInterface - The HTTP interface to use for fetching a config, if applicable.
      Returns:
      A client configuration.
    • extractPlaylistVideoList

      @NotNull protected @NotNull com.sedmelluq.discord.lavaplayer.tools.JsonBrowser extractPlaylistVideoList(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.JsonBrowser json)
      Overrides:
      extractPlaylistVideoList in class NonMusicClient
    • extractPlaylistTracks

      protected void extractPlaylistTracks(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.JsonBrowser json, @NotNull @NotNull List<com.sedmelluq.discord.lavaplayer.track.AudioTrack> tracks, @NotNull @NotNull YoutubeAudioSourceManager source)
      Overrides:
      extractPlaylistTracks in class NonMusicClient
    • getPlayerParams

      @NotNull public @NotNull String getPlayerParams()
    • getOptions

      @NotNull public @NotNull ClientOptions getOptions()
    • canHandleRequest

      public boolean canHandleRequest(@NotNull @NotNull String identifier)
      Description copied from interface: Client
      Returns a boolean determining whether this client can be used to handle requests for the given identifier.
      Specified by:
      canHandleRequest in interface Client
      Overrides:
      canHandleRequest in class NonMusicClient
      Parameters:
      identifier - The resource identifier. Could be an arbitrary string or a URL.
      Returns:
      True, if this client can handle the request.
    • getIdentifier

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

      public com.sedmelluq.discord.lavaplayer.track.AudioItem loadPlaylist(@NotNull @NotNull YoutubeAudioSourceManager source, @NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull @NotNull String playlistId, @Nullable @Nullable String selectedVideoId)
      Description copied from interface: Client
      Loads a playlist.
      Specified by:
      loadPlaylist in interface Client
      Overrides:
      loadPlaylist in class NonMusicClient
      Parameters:
      source - The source manager responsible for this client.
      httpInterface - The interface to use for requests.
      playlistId - The ID of the playlist.
      Returns:
      An AudioItem.