Class MessageEmbed.VideoInfo

java.lang.Object
net.dv8tion.jda.api.entities.MessageEmbed.VideoInfo
Enclosing class:
MessageEmbed

public static class MessageEmbed.VideoInfo extends Object
Represents the information provided to embed a video.
The videos represented are expected to be played using an HTML5 player from the site which the url belongs to.
  • Constructor Details

    • VideoInfo

      public VideoInfo(String url, String proxyUrl, int width, int height)
  • Method Details

    • getUrl

      @Nullable public String getUrl()
      The url of the video.
      Returns:
      Possibly-null String containing the video url.
    • getProxyUrl

      @Nullable public String getProxyUrl()
      The url of the video, proxied by Discord
      This url is used to access the video through Discord instead of directly to prevent ip scraping.
      Returns:
      Possibly-null String containing the proxied video url.
    • getProxy

      @Nullable public FileProxy getProxy()
      Returns a FileProxy for this embed video.
      Returns:
      Possibly-null FileProxy of this embed video
      See Also:
    • getWidth

      public int getWidth()
      The width of the video.
      This usually isn't the actual video width, but instead the starting embed window size.

      Basically: Don't rely on this to represent the actual video's quality or size.

      Returns:
      Non-negative, Non-zero int containing the width of the embedded video.
    • getHeight

      public int getHeight()
      The height of the video.
      This usually isn't the actual video height, but instead the starting embed window size.

      Basically: Don't rely on this to represent the actual video's quality or size.

      Returns:
      Non-negative, Non-zero int containing the height of the embedded video.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object