hyphenate_SDK4.0 4.6.0
hyphenate java IM SDK
Public 成员函数 | 所有成员列表
com.hyphenate.chat.EMVideoMessageBody类 参考
类 com.hyphenate.chat.EMVideoMessageBody 继承关系图:
com.hyphenate.chat.EMFileMessageBody com.hyphenate.chat.EMMessageBody

Public 成员函数

 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 getThumbnailSecret ()
 
void setThumbnailSecret (String secret)
 
EMDownloadStatus thumbnailDownloadStatus ()
 
void setThumbnailDownloadStatus (EMDownloadStatus status)
 
- Public 成员函数 继承自 com.hyphenate.chat.EMFileMessageBody
 EMFileMessageBody (String localPath)
 
 EMFileMessageBody (Uri localPath)
 
String getFileName ()
 
void setFileName (String fileName)
 
String getLocalUrl ()
 
void setLocalUrl (String localUrl)
 
Uri getLocalUri ()
 
void setLocalUrl (Uri 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.EMMessageBody
long operationTime ()
 
String operatorId ()
 
int operationCount ()
 

详细描述

视频消息体。

EMVideoMessageBody body = new EMVideoMessageBody(videoFilePath,thumbPath, duration, filelength);

构造及析构函数说明

◆ EMVideoMessageBody() [1/2]

com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody ( String  videoFilePath,
String  thumbPath,
int  duration,
long  filelength 
)

创建视频消息体。

参数
videoFilePath视频文件路径。
thumbPath缩略图路径。
duration视频时长,单位是秒。
filelength视频文件大小。

◆ EMVideoMessageBody() [2/2]

com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody ( Uri  videoFilePath,
Uri  thumbPath,
int  duration,
long  filelength 
)

创建视频消息体。

参数
videoFilePath视频缩略图的资源标识符。
thumbPath缩略图的资源标识符。
duration视频时长,单位为秒。
filelength视频文件大小。

成员函数说明

◆ getDuration()

int com.hyphenate.chat.EMVideoMessageBody.getDuration ( )

获取视频时长, 单位为秒。

返回
视频时长, 单位为秒。

◆ getLocalThumb()

String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb ( )

获取视频缩略图的本地绝对路径或者资源标识符的字符串形式。

返回
视频缩略图的本地路径。

◆ getLocalThumbUri()

Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri ( )

获取缩略图的本地资源标识符。

返回
缩略图的本地资源标识符。

◆ getThumbnailHeight()

int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight ( )

获取视频缩略图的高度。

返回
视频缩略图的高度。

◆ getThumbnailSecret()

String com.hyphenate.chat.EMVideoMessageBody.getThumbnailSecret ( )

获取视频缩略图的密钥。 下载视频缩略图时需要密匙做校验。

返回
视频缩略图的密钥。

◆ getThumbnailUrl()

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

获取缩略图在服务器的路径。

返回
缩略图在服务器的路径。

◆ getThumbnailWidth()

int com.hyphenate.chat.EMVideoMessageBody.getThumbnailWidth ( )

获取视频缩略图的宽度。

返回
视频缩略图的宽度。

◆ getVideoFileLength()

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

获取视频文件的大小。

返回
视频文件的大小。

◆ setLocalThumb() [1/2]

void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb ( String  localThumbPath)

设置视频缩略图路径。

参数
localThumbPath视频缩略图路径,可以是缩略图的绝对路径或资源标识符。

◆ setLocalThumb() [2/2]

void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb ( Uri  localThumbPath)

设置视频缩略图的路径。

参数
localThumbPath视频缩略图的资源标识符。

◆ setThumbnailDownloadStatus()

void com.hyphenate.chat.EMVideoMessageBody.setThumbnailDownloadStatus ( EMDownloadStatus  status)

设置视频缩略图的下载状态。

参数
status视频缩略图的下载状态。

◆ setThumbnailSecret()

void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSecret ( String  secret)

设置视频缩略图的密钥。

参数
secret视频缩略图的密钥。

◆ setThumbnailSize()

void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSize ( int  width,
int  height 
)

设置视频缩略图的尺寸。

参数
width视频缩略图的宽度。
height视频缩略图的高度。

◆ setThumbnailUrl()

void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl ( String  thumbnailUrl)

设置缩略图在服务器的路径。

参数
thumbnailUrl缩略图在服务器的路径。

◆ setVideoFileLength()

void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength ( long  filelength)

设置视频文件的文件大小。 用户在做数据库迁移的时候可能使用。

参数
filelength视频文件的大小。

◆ thumbnailDownloadStatus()

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

获取视频缩略图的下载状态。

返回
视频缩略图的下载状态。

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