Video message body
VideoMessageBody body = new VideoMessageBody(videoFilePath, thumbPath, duration, filelength);
io.agora.chat.VideoMessageBody.VideoMessageBody |
( |
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 |
io.agora.chat.VideoMessageBody.VideoMessageBody |
( |
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 io.agora.chat.VideoMessageBody.getDuration |
( |
| ) |
|
Get video duration, in seconds
- Returns
- Video duration, in seconds
String io.agora.chat.VideoMessageBody.getLocalThumb |
( |
| ) |
|
Get local absolute path of thumbnail or the string from of Uri
- Returns
- Local path of thumbnail
Uri io.agora.chat.VideoMessageBody.getLocalThumbUri |
( |
| ) |
|
Get local uri of thumbnail
- Returns
- Local uri of thumbnail
int io.agora.chat.VideoMessageBody.getThumbnailHeight |
( |
| ) |
|
Get video thumbnail height
- Returns
- Height of video thumbnail
String io.agora.chat.VideoMessageBody.getThumbnailSecret |
( |
| ) |
|
Get secret key of thumbnail Required to download a thumbnail
- Returns
- Secret key (token) of thumbnail
String io.agora.chat.VideoMessageBody.getThumbnailUrl |
( |
| ) |
|
Get thumbnail's remote url
- Returns
- Thumbnail's remote url
int io.agora.chat.VideoMessageBody.getThumbnailWidth |
( |
| ) |
|
Get video thumbnail width
- Returns
- Width of video thumbnail
long io.agora.chat.VideoMessageBody.getVideoFileLength |
( |
| ) |
|
Get video file length, in bytes
- Returns
- Video file length
void io.agora.chat.VideoMessageBody.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 io.agora.chat.VideoMessageBody.setLocalThumb |
( |
Uri |
localThumbPath | ) |
|
Set path of video thumbnail
- Parameters
-
localThumbPath | Uri of video thumbnail |
void io.agora.chat.VideoMessageBody.setThumbnailSecret |
( |
String |
secret | ) |
|
Set the secret key (token) of thumbnail
- Parameters
-
secret | Secret key (token) of thumbnail |
void io.agora.chat.VideoMessageBody.setThumbnailSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Set video thumbnail's size
- Parameters
-
width | Thumbnail's width |
height | Thumbnail's height |
void io.agora.chat.VideoMessageBody.setThumbnailUrl |
( |
String |
thumbnailUrl | ) |
|
Set server url path of thumbnail
- Parameters
-
thumbnailUrl | Server url path of thumbnail |
void io.agora.chat.VideoMessageBody.setVideoFileLength |
( |
long |
filelength | ) |
|
Set video file length, in bytes Might need it during database migration
- Parameters
-
filelength | Video file length |
Get download status of thumbnail
- Returns
- Download status of thumbnail
final Parcelable.Creator<VideoMessageBody> io.agora.chat.VideoMessageBody.CREATOR |
|
static |
Initial value:= new Creator<VideoMessageBody>() {
@Override
public VideoMessageBody[] newArray(int size) {
return new VideoMessageBody[size];
}
@Override
public VideoMessageBody createFromParcel(Parcel in) {
return new VideoMessageBody(in);
}
}
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/io/agora/chat/VideoMessageBody.java