The video message body.
Definition: EMVideoMessageBody.java:37
◆ EMVideoMessageBody() [1/2]
com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody |
( |
String |
videoFilePath, |
|
|
String |
thumbPath, |
|
|
int |
duration, |
|
|
long |
filelength |
|
) |
| |
Creates a video message body.
- Parameters
-
videoFilePath | The path of the video file. |
thumbPath | The thumbnail URI. |
duration | The video duration in seconds. |
filelength | The size of the video file. |
◆ EMVideoMessageBody() [2/2]
com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody |
( |
Uri |
videoFilePath, |
|
|
Uri |
thumbPath, |
|
|
int |
duration, |
|
|
long |
filelength |
|
) |
| |
Creates a video message body.
- Parameters
-
videoFilePath | The URI of the video thumbnail. |
thumbPath | The thumbnail URI. |
duration | The video duration in seconds. |
filelength | The size of the video file. |
◆ getDuration()
int com.hyphenate.chat.EMVideoMessageBody.getDuration |
( |
| ) |
|
Gets the video duration in seconds.
- Returns
- The video duration in seconds.
◆ getLocalThumb()
String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb |
( |
| ) |
|
Gets the local absolute path of the video thumbnail or its URI in string format.
- Returns
- The local path of the video thumbnail.
◆ getLocalThumbUri()
Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri |
( |
| ) |
|
Gets the local URI of the video thumbnail.
- Returns
- The local URI of the video thumbnail.
◆ getThumbnailHeight()
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight |
( |
| ) |
|
Gets the height of the video thumbnail.
- Returns
- The height of the video thumbnail.
◆ getThumbnailSecret()
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailSecret |
( |
| ) |
|
Gets the secret key of the video thumbnail. The secret key is used for validation during download of the video thumbnail.
- Returns
- The secret key of the video thumbnail.
◆ getThumbnailUrl()
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl |
( |
| ) |
|
Gets the URL of the thumbnail on the server.
- Returns
- The URL of the thumbnail on the server.
◆ getThumbnailWidth()
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailWidth |
( |
| ) |
|
Gets the width of the video thumbnail.
- Returns
- The width of video thumbnail.
◆ getVideoFileLength()
long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength |
( |
| ) |
|
Gets the size of the video file in bytes.
- Returns
- The size of the video file.
◆ setLocalThumb() [1/2]
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb |
( |
String |
localThumbPath | ) |
|
Sets the path of the video thumbnail.
- Parameters
-
localThumbPath | The path of the video thumbnail, which can be the absolute path or URI of the video thumbnail. |
◆ setLocalThumb() [2/2]
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb |
( |
Uri |
localThumbPath | ) |
|
Sets the path of the video thumbnail.
- Parameters
-
localThumbPath | The URI of video thumbnail. |
◆ setThumbnailDownloadStatus()
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailDownloadStatus |
( |
EMDownloadStatus |
status | ) |
|
Sets the download status of the video thumbnail.
- Parameters
-
status | The download status of the video thumbnail. |
◆ setThumbnailSecret()
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSecret |
( |
String |
secret | ) |
|
Sets the secret key of the video thumbnail.
- Parameters
-
secret | The secret key of the video thumbnail. |
◆ setThumbnailSize()
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Sets the size of the video thumbnail.
- Parameters
-
width | The thumbnail's width. |
height | The thumbnail's height. |
◆ setThumbnailUrl()
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl |
( |
String |
thumbnailUrl | ) |
|
Sets the URL of the thumbnail on the server.
- Parameters
-
thumbnailUrl | The URL of the thumbnail on the server. |
◆ setVideoFileLength()
void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength |
( |
long |
filelength | ) |
|
Sets the size of the video file in bytes. This method may be used during database migration.
- Parameters
-
filelength | The size of the video file. |
◆ thumbnailDownloadStatus()
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus |
( |
| ) |
|
Gets the download status of the video thumbnail.
- Returns
- The download status of the video thumbnail.
The documentation for this class was generated from the following file:
- com/hyphenate/chat/EMVideoMessageBody.java