Package net.dv8tion.jda.api.entities
Class MessageEmbed.VideoInfo
- java.lang.Object
-
- net.dv8tion.jda.api.entities.MessageEmbed.VideoInfo
-
- Enclosing class:
- MessageEmbed
public static class MessageEmbed.VideoInfo extends java.lang.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 Summary
Constructors Constructor Description VideoInfo(java.lang.String url, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getHeight()
The height of the video.java.lang.String
getUrl()
The url of the video.int
getWidth()
The width of the video.
-
-
-
Method Detail
-
getUrl
@Nullable public java.lang.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(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-