Package net.dv8tion.jda.api.entities
Class MessageEmbed.VideoInfo
java.lang.Object
net.dv8tion.jda.api.entities.MessageEmbed.VideoInfo
- Enclosing class:
MessageEmbed
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.
The videos represented are expected to be played using an HTML5 player from the site which the url belongs to.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
The height of the video.getProxy()
Returns aFileProxy
for this embed video.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.getUrl()
The url of the video.int
getWidth()
The width of the video.
-
Constructor Details
-
VideoInfo
-
-
Method Details
-
getUrl
The url of the video.- Returns:
- Possibly-null String containing the video url.
-
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
Returns aFileProxy
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
-