hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Public 成员函数 | 静态 Public 属性 | 所有成员列表
com.hyphenate.chat.EMVideoMessageBody类 参考
类 com.hyphenate.chat.EMVideoMessageBody 继承关系图:
com.hyphenate.chat.EMFileMessageBody com.hyphenate.chat.EMMessageBody

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 成员函数 继承自 com.hyphenate.chat.EMFileMessageBody
 EMFileMessageBody (String localPath)
 
 EMFileMessageBody (EMAFileMessageBody body)
 
String getFileName ()
 
void setFileName (String fileName)
 
String getLocalUrl ()
 
void setLocalUrl (String localUrl)
 
String getRemoteUrl ()
 
void setRemoteUrl (String remoteUrl)
 
void setSecret (String secret)
 
String getSecret ()
 
String displayName ()
 
EMDownloadStatus downloadStatus ()
 

静态 Public 属性

static final Parcelable.Creator< EMVideoMessageBodyCREATOR
 

额外继承的成员函数

- Protected 属性 继承自 com.hyphenate.chat.EMMessageBody
EMAMessageBody 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 ( )

获取本地Video缩略图

返回
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl ( )

获取缩略图的url 接受消息时,sdk会自动下载缩略图,存储到本地

返回
long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength ( )

获取视频文件的文件大小

返回
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus ( )

获取缩略图的下载状态

返回

类成员变量说明

final Parcelable.Creator<EMVideoMessageBody> com.hyphenate.chat.EMVideoMessageBody.CREATOR
static
初始值:
= new Creator<EMVideoMessageBody>() {
@Override
public EMVideoMessageBody[] newArray(int size) {
return new EMVideoMessageBody[size];
}
@Override
public EMVideoMessageBody createFromParcel(Parcel in) {
return new EMVideoMessageBody(in);
}
}

该类的文档由以下文件生成: