Chat SDK for Android v1.2.1
agora java chat SDK
|
Public Member Functions | |
VideoMessageBody (String videoFilePath, String thumbPath, int duration, long filelength) | |
VideoMessageBody (Uri videoFilePath, Uri thumbPath, int duration, long filelength) | |
long | getVideoFileLength () |
void | setVideoFileLength (long filelength) |
String | getThumbnailUrl () |
void | setThumbnailUrl (String thumbnailUrl) |
void | setThumbnailSize (int width, int height) |
int | getThumbnailWidth () |
int | getThumbnailHeight () |
String | getLocalThumb () |
Uri | getLocalThumbUri () |
void | setLocalThumb (String localThumbPath) |
void | setLocalThumb (Uri localThumbPath) |
int | getDuration () |
String | getThumbnailSecret () |
void | setThumbnailSecret (String secret) |
EMDownloadStatus | thumbnailDownloadStatus () |
void | setThumbnailDownloadStatus (EMDownloadStatus status) |
The video message body.
io.agora.chat.VideoMessageBody.VideoMessageBody | ( | String | videoFilePath, |
String | thumbPath, | ||
int | duration, | ||
long | filelength | ||
) |
Creates a video message body.
videoFilePath | The path of the video file. |
thumbPath | The thumbnail URI. |
duration | The video duration in seconds. |
filelength | The size of the video file. |
io.agora.chat.VideoMessageBody.VideoMessageBody | ( | Uri | videoFilePath, |
Uri | thumbPath, | ||
int | duration, | ||
long | filelength | ||
) |
Creates a video message body.
videoFilePath | The URI of the video thumbnail. |
thumbPath | The thumbnail URI. |
duration | The video duration in seconds. |
filelength | The size of the video file. |
int io.agora.chat.VideoMessageBody.getDuration | ( | ) |
Gets the video duration in seconds.
String io.agora.chat.VideoMessageBody.getLocalThumb | ( | ) |
Gets the local absolute path of the video thumbnail or its URI in string format.
Uri io.agora.chat.VideoMessageBody.getLocalThumbUri | ( | ) |
Gets the local URI of the video thumbnail.
int io.agora.chat.VideoMessageBody.getThumbnailHeight | ( | ) |
Gets the height of the video thumbnail.
String io.agora.chat.VideoMessageBody.getThumbnailSecret | ( | ) |
Gets the secret key of the video thumbnail. The secret key is used for validation during download of the video thumbnail.
String io.agora.chat.VideoMessageBody.getThumbnailUrl | ( | ) |
Gets the URL of the thumbnail on the server.
int io.agora.chat.VideoMessageBody.getThumbnailWidth | ( | ) |
Gets the width of the video thumbnail.
long io.agora.chat.VideoMessageBody.getVideoFileLength | ( | ) |
Gets the size of the video file in bytes.
void io.agora.chat.VideoMessageBody.setLocalThumb | ( | String | localThumbPath | ) |
Sets the path of the video thumbnail.
localThumbPath | The path of the video thumbnail, which can be the absolute path or URI of the video thumbnail. |
void io.agora.chat.VideoMessageBody.setLocalThumb | ( | Uri | localThumbPath | ) |
Sets the path of the video thumbnail.
localThumbPath | The URI of video thumbnail. |
void io.agora.chat.VideoMessageBody.setThumbnailDownloadStatus | ( | EMDownloadStatus | status | ) |
Sets the download status of the video thumbnail.
status | The download status of the video thumbnail. |
void io.agora.chat.VideoMessageBody.setThumbnailSecret | ( | String | secret | ) |
Sets the secret key of the video thumbnail.
secret | The secret key of the video thumbnail. |
void io.agora.chat.VideoMessageBody.setThumbnailSize | ( | int | width, |
int | height | ||
) |
Sets the size of the video thumbnail.
width | The thumbnail's width. |
height | The thumbnail's height. |
void io.agora.chat.VideoMessageBody.setThumbnailUrl | ( | String | thumbnailUrl | ) |
Sets the URL of the thumbnail on the server.
thumbnailUrl | The URL of the thumbnail on the server. |
void io.agora.chat.VideoMessageBody.setVideoFileLength | ( | long | filelength | ) |
Sets the size of the video file in bytes. This method may be used during database migration.
filelength | The size of the video file. |
EMDownloadStatus io.agora.chat.VideoMessageBody.thumbnailDownloadStatus | ( | ) |
Gets the download status of the video thumbnail.