hyphenate_SDK3.0  3.6.0
hyphenatejavaIMSDK
Public 成员函数 | 静态 Public 属性 | 所有成员列表
com.hyphenate.chat.EMVideoMessageBody类 参考
类 com.hyphenate.chat.EMVideoMessageBody 继承关系图:
Inheritance graph
[图例]
com.hyphenate.chat.EMVideoMessageBody 的协作图:
Collaboration graph
[图例]

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.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 ()
 
void setFileLength (long length)
 
EMDownloadStatus downloadStatus ()
 
void setDownloadStatus (EMDownloadStatus status)
 
- Public 成员函数 继承自 com.hyphenate.chat.EMBase< EMAMessageBody >
boolean equals (Object o)
 
int hashCode ()
 

静态 Public 属性

static final Parcelable.Creator< EMVideoMessageBodyCREATOR
 

额外继承的成员函数

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

获取缩略图的本地路径

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 ( )

缩略图下载状态

返回

类成员变量说明

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);
}
}

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