Video message body
EMVideoMessageBody body = new EMVideoMessageBody(videoFilePath, thumbPath, duration, filelength);
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 |
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 |
int com.hyphenate.chat.EMVideoMessageBody.getDuration |
( |
| ) |
|
Get video duration, in seconds
- Returns
- Video duration, in seconds
String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb |
( |
| ) |
|
Get local absolute path of thumbnail or the string from of Uri
- Returns
- Local path of thumbnail
Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri |
( |
| ) |
|
Get local uri of thumbnail
- Returns
- Local uri of thumbnail
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight |
( |
| ) |
|
Get video thumbnail height
- Returns
- Height of video thumbnail
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailSecret |
( |
| ) |
|
Get secret key of thumbnail Required to download a thumbnail
- Returns
- Secret key (token) of thumbnail
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl |
( |
| ) |
|
Get thumbnail's remote url
- Returns
- Thumbnail's remote url
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailWidth |
( |
| ) |
|
Get video thumbnail width
- Returns
- Width of video thumbnail
long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength |
( |
| ) |
|
Get video file length, in bytes
- Returns
- Video file length
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb |
( |
String |
localThumbPath | ) |
|
Set path of video thumbnail
- Parameters
-
localThumbPath | Path of video thumbnail, which can be either the absolute path or the Uri of file |
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb |
( |
Uri |
localThumbPath | ) |
|
Set path of video thumbnail
- Parameters
-
localThumbPath | Uri of video thumbnail |
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSecret |
( |
String |
secret | ) |
|
Set the secret key (token) of thumbnail
- Parameters
-
secret | Secret key (token) of thumbnail |
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Set video thumbnail's size
- Parameters
-
width | Thumbnail's width |
height | Thumbnail's height |
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl |
( |
String |
thumbnailUrl | ) |
|
Set server url path of thumbnail
- Parameters
-
thumbnailUrl | Server url path of thumbnail |
void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength |
( |
long |
filelength | ) |
|
Set video file length, in bytes Might need it during database migration
- Parameters
-
filelength | Video file length |
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus |
( |
| ) |
|
Get download status of thumbnail
- Returns
- Download status of thumbnail
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