Video message body
EMVideoMessageBody body = new EMVideoMessageBody(videoFilePath, thumbPath, duration, filelength);
◆ EMVideoMessageBody() [1/2]
com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody |
( |
String |
videoFilePath, |
|
|
String |
thumbPath, |
|
|
int |
duration, |
|
|
long |
filelength |
|
) |
| |
create a video message body
- Parameters
-
videoFilePath | the path of the video file |
thumbPath | the path of the video first frame |
duration | video duration, in seconds |
filelength | the length of the video file |
◆ EMVideoMessageBody() [2/2]
com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody |
( |
Uri |
videoFilePath, |
|
|
Uri |
thumbPath, |
|
|
int |
duration, |
|
|
long |
filelength |
|
) |
| |
create a video message body
- Parameters
-
videoFilePath | the uri of the video |
thumbPath | the uri of the video first frame |
duration | video duration, in seconds |
filelength | the length of the video file |
◆ getDuration()
int com.hyphenate.chat.EMVideoMessageBody.getDuration |
( |
| ) |
|
Video duration, in seconds
- Returns
◆ getLocalThumb()
String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb |
( |
| ) |
|
Local path of thumbnail or the String style of Uri
UIImage *image = [UIImage imageWithContentsOfFile:thumbnailLocalPath];
- Returns
◆ getLocalThumbUri()
Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri |
( |
| ) |
|
Local uri of thumbnail
UIImage *image = [UIImage imageWithContentsOfFile:thumbnailLocalPath];
- Returns
◆ getThumbnailHeight()
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight |
( |
| ) |
|
get video thumbnail height
- Returns
◆ getThumbnailSecret()
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailSecret |
( |
| ) |
|
Secret key of thumbnail, required to download a thumbnail
◆ getThumbnailUrl()
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl |
( |
| ) |
|
◆ getThumbnailWidth()
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailWidth |
( |
| ) |
|
get video thumbnail width
- Returns
◆ getVideoFileLength()
long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength |
( |
| ) |
|
File length of a thumbnail, in bytes
- Returns
◆ setLocalThumb()
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb |
( |
String |
localThumbPath | ) |
|
◆ setThumbnailUrl()
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl |
( |
String |
thumbnailUrl | ) |
|
Server url path of thumbnail
◆ setVideoFileLength()
void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength |
( |
long |
filelength | ) |
|
set file length of a thumbnail, in bytes. Might need it during database migration
◆ thumbnailDownloadStatus()
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus |
( |
| ) |
|
Download status of thumbnail
- Returns
◆ CREATOR
final Parcelable.Creator<EMVideoMessageBody> com.hyphenate.chat.EMVideoMessageBody.CREATOR |
|
static |
Initial value:= new Creator<EMVideoMessageBody>() {
@Override
public EMVideoMessageBody[] newArray(int size) {
return new EMVideoMessageBody[size];
}
@Override
public EMVideoMessageBody createFromParcel(Parcel in) {
return new EMVideoMessageBody(in);
}
}
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMVideoMessageBody.java