agora_chat_SDK 1.0.6
agora java chat SDK
Public 成员函数 | 静态 Public 属性 | 所有成员列表
io.agora.chat.VideoMessageBody类 参考
类 io.agora.chat.VideoMessageBody 继承关系图:
io.agora.chat.FileMessageBody io.agora.chat.MessageBody

Public 成员函数

 VideoMessageBody (EMAVideoMessageBody body)
 
 VideoMessageBody (String videoFilePath, String thumbPath, int duration, long filelength)
 
 VideoMessageBody (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 成员函数 继承自 io.agora.chat.FileMessageBody
 FileMessageBody (String localPath)
 
 FileMessageBody (Uri localPath)
 
 FileMessageBody (EMAFileMessageBody body)
 
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 属性

static final Parcelable.Creator< VideoMessageBodyCREATOR
 

详细描述

视频消息体。

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

构造及析构函数说明

◆ VideoMessageBody() [1/2]

io.agora.chat.VideoMessageBody.VideoMessageBody ( String  videoFilePath,
String  thumbPath,
int  duration,
long  filelength 
)

创建视频消息体。

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

◆ VideoMessageBody() [2/2]

io.agora.chat.VideoMessageBody.VideoMessageBody ( Uri  videoFilePath,
Uri  thumbPath,
int  duration,
long  filelength 
)

创建视频消息体。

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

成员函数说明

◆ getDuration()

int io.agora.chat.VideoMessageBody.getDuration ( )

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

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

◆ getLocalThumb()

String io.agora.chat.VideoMessageBody.getLocalThumb ( )

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

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

◆ getLocalThumbUri()

Uri io.agora.chat.VideoMessageBody.getLocalThumbUri ( )

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

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

◆ getThumbnailHeight()

int io.agora.chat.VideoMessageBody.getThumbnailHeight ( )

获取视频缩略图的高度。

返回
视频缩略图的高度。

◆ getThumbnailSecret()

String io.agora.chat.VideoMessageBody.getThumbnailSecret ( )

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

返回
视频缩略图的密钥。

◆ getThumbnailUrl()

String io.agora.chat.VideoMessageBody.getThumbnailUrl ( )

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

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

◆ getThumbnailWidth()

int io.agora.chat.VideoMessageBody.getThumbnailWidth ( )

获取视频缩略图的宽度。

返回
视频缩略图的宽度。

◆ getVideoFileLength()

long io.agora.chat.VideoMessageBody.getVideoFileLength ( )

获取视频文件的大小。

返回
视频文件的大小。

◆ setLocalThumb() [1/2]

void io.agora.chat.VideoMessageBody.setLocalThumb ( String  localThumbPath)

设置视频缩略图路径。

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

◆ setLocalThumb() [2/2]

void io.agora.chat.VideoMessageBody.setLocalThumb ( Uri  localThumbPath)

设置视频缩略图的路径。

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

◆ setThumbnailSecret()

void io.agora.chat.VideoMessageBody.setThumbnailSecret ( String  secret)

设置视频缩略图的密钥。

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

◆ setThumbnailSize()

void io.agora.chat.VideoMessageBody.setThumbnailSize ( int  width,
int  height 
)

设置视频缩略图的尺寸。

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

◆ setThumbnailUrl()

void io.agora.chat.VideoMessageBody.setThumbnailUrl ( String  thumbnailUrl)

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

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

◆ setVideoFileLength()

void io.agora.chat.VideoMessageBody.setVideoFileLength ( long  filelength)

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

参数
filelength视频文件的大小。

◆ thumbnailDownloadStatus()

EMDownloadStatus io.agora.chat.VideoMessageBody.thumbnailDownloadStatus ( )

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

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

类成员变量说明

◆ CREATOR

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

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