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
-
Constructor Details
-
VideoInfo
-
-
Method Details
-
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
-