hyphenate_SDK3.0
3.8.6.1
hyphenate java IM SDK
|
Public 成员函数 | |
EMVideoMessageBody (EMAVideoMessageBody body) | |
EMVideoMessageBody (String videoFilePath, String thumbPath, int duration, long filelength) | |
EMVideoMessageBody (Uri videoFilePath, Uri 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 () |
Uri | getLocalThumbUri () |
void | setLocalThumb (String localThumbPath) |
void | setLocalThumb (Uri localThumbPath) |
int | getDuration () |
String | toString () |
int | describeContents () |
void | writeToParcel (Parcel dest, int flags) |
String | getThumbnailSecret () |
void | setThumbnailSecret (String secret) |
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 | 视频文件大小 |
com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody | ( | Uri | videoFilePath, |
Uri | thumbPath, | ||
int | duration, | ||
long | filelength | ||
) |
创建一个视频消息体
videoFilePath | 视频文件的资源标识符(路径) |
thumbPath | 预览图的资源标识符(路径) |
duration | 视频时间,单位是秒 |
filelength | 视频文件大小 |
int com.hyphenate.chat.EMVideoMessageBody.getDuration | ( | ) |
获得视频时长, 单位为秒
String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb | ( | ) |
获取视频缩略图的本地绝对路径或者资源标识符(路径)的字符串形式
Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri | ( | ) |
获取缩略图的本地资源标识符(路径)
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.setLocalThumb | ( | String | localThumbPath | ) |
设置视频预览图路径
localThumbPath | 视频预览图路径,可以是绝对路径,也可以是文件的资源标识符 |
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb | ( | Uri | localThumbPath | ) |
设置视频预览图路径
localThumbPath | 文件的资源标识符 |
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSecret | ( | String | secret | ) |
设置视频预览图的密钥(访问信令)
secret | 视频预览图的密钥(访问信令) |
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSize | ( | int | width, |
int | height | ||
) |
设置视频缩略图尺寸
width | 视频缩略图宽度 |
height | 视频缩略图高度 |
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl | ( | String | thumbnailUrl | ) |
设置缩略图在服务器的路径
thumbnailUrl | 缩略图在服务器的路径 |
void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength | ( | long | filelength | ) |
设置视频文件的文件大小 用户在做数据库迁移的时候可能使用
filelength | 视频文件的大小 |
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus | ( | ) |
获取缩略图下载状态
|
static |