hyphenate_SDK3.0
3.6.1
hyphenatejavaIMSDK
|
Public 成员函数 | |
EMVideoMessageBody (EMAVideoMessageBody body) | |
EMVideoMessageBody (String videoFilePath, String 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 () |
void | setLocalThumb (String localThumbPath) |
int | getDuration () |
String | toString () |
int | describeContents () |
void | writeToParcel (Parcel dest, int flags) |
String | getThumbnailSecret () |
void | setThumbnailSecret (String secret) |
EMDownloadStatus | thumbnailDownloadStatus () |
Public 成员函数 继承自 com.hyphenate.chat.EMBase< EMAMessageBody > | |
boolean | equals (Object o) |
int | hashCode () |
静态 Public 属性 | |
static final Parcelable.Creator< EMVideoMessageBody > | CREATOR |
额外继承的成员函数 | |
Protected 属性 继承自 com.hyphenate.chat.EMBase< EMAMessageBody > | |
T | emaObject |
视频消息体
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 | ( | ) |
获取缩略图的本地路径
UIImage *image = [UIImage imageWithContentsOfFile:thumbnailLocalPath];
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight | ( | ) |
获取视频缩略图的高度
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailSecret | ( | ) |
缩略图的密钥, 下载缩略图时需要密匙做校验
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl | ( | ) |
缩略图在服务器的路径
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailWidth | ( | ) |
获取视频缩略图的宽度
long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength | ( | ) |
获取视频文件的文件大小
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl | ( | String | thumbnailUrl | ) |
缩略图在服务器的路径
void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength | ( | long | filelength | ) |
视频文件的文件大小。用户在做数据库迁移的时候可能使用。
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus | ( | ) |
缩略图下载状态
|
static |