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, int width, int height)
  • Method Details

    • getUrl

      @Nullable public String getUrl()
      The url of the video.
      Returns:
      Possibly-null String containing the video url.
    • 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