|
hyphenate_SDK3.0
3.1.4
hyphenatejavaIMSDK
|
Public 成员函数 | |
| EMVideoMessageBody (EMAVideoMessageBody body) | |
| EMVideoMessageBody (String videoFilePath, String thumbPath, int duration, long filelength) | |
| String | getThumbnailUrl () |
| void | setThumbnailUrl (String thumbnailUrl) |
| long | getVideoFileLength () |
| void | setVideoFileLength (long filelength) |
| void | setLocalThumb (String localThumbPath) |
| String | getLocalThumb () |
| int | getDuration () |
| String | toString () |
| int | describeContents () |
| void | writeToParcel (Parcel dest, int flags) |
| void | setThumbnailSecret (String secret) |
| String | getThumbnailSecret () |
| EMDownloadStatus | thumbnailDownloadStatus () |
静态 Public 属性 | |
| static final Parcelable.Creator< EMVideoMessageBody > | CREATOR |
额外继承的成员函数 |
视频消息体
EMVideoMessageBody body = new EMVideoMessageBody(videoFilePath,thumbPath, duration,filelength);
| com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody | ( | String | videoFilePath, |
| String | thumbPath, | ||
| int | duration, | ||
| long | filelength | ||
| ) |
创建一个视频消息体
| videoFilePath | 视频文件路径 |
| thumbPath | 预览图路径 |
| duration | 视频时间 |
| filelength | 视频文件长度 |
| int com.hyphenate.chat.EMVideoMessageBody.getDuration | ( | ) |
获得视频文件的长度(单位为秒)
| String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb | ( | ) |
获取本地Video缩略图
| String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl | ( | ) |
获取缩略图的url 接受消息时,sdk会自动下载缩略图,存储到本地
| long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength | ( | ) |
获取视频文件的文件大小
| EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus | ( | ) |
获取缩略图的下载状态
|
static |
1.8.9.1