Chat SDK for Unity and Windows v1.2.0
Public 成员函数 | Public 属性 | 所有成员列表
AgoraChat.MessageBody.VideoBody类 参考
类 AgoraChat.MessageBody.VideoBody 继承关系图:
AgoraChat.MessageBody.FileBody AgoraChat.IMessageBody

Public 成员函数

 VideoBody (string localPath, string displayName, int duration, long fileSize=0, string thumbnailLocalPath="", double width=0, double height=0)
 
- Public 成员函数 继承自 AgoraChat.MessageBody.FileBody
 FileBody (string localPath, string displayName="", long fileSize=0)
 

Public 属性

string ThumbnaiLocationPath
 
string ThumbnailRemotePath
 
string ThumbnailSecret
 
DownLoadStatus ThumbnailDownStatus = DownLoadStatus.PENDING
 
double Height
 
double Width
 
int Duration
 
- Public 属性 继承自 AgoraChat.MessageBody.FileBody
string LocalPath
 
string DisplayName
 
string Secret
 
string RemotePath
 
long FileSize
 
DownLoadStatus DownStatus = DownLoadStatus.PENDING
 
- Public 属性 继承自 AgoraChat.IMessageBody
MessageBodyType Type
 

额外继承的成员函数

- 属性 继承自 AgoraChat.IMessageBody
long OperationTime [get, set]
 
string OperatorId [get, set]
 
long OperationCount [get, set]
 

详细描述

视频消息体。

构造及析构函数说明

◆ VideoBody()

AgoraChat.MessageBody.VideoBody.VideoBody ( string  localPath,
string  displayName,
int  duration,
long  fileSize = 0,
string  thumbnailLocalPath = "",
double  width = 0,
double  height = 0 
)

视频消息体构造方法。

参数
localPath视频消息的本地路径。
displayName视频文件的显示名称。
duration视频时长,单位为秒。
fileSize视频的文件大小,单位为字节。
thumbnailLocalPath视频缩略图的本地路径。
width视频宽度,单位为像素。
height视频高度,单位为像素。

类成员变量说明

◆ ThumbnaiLocationPath

string AgoraChat.MessageBody.VideoBody.ThumbnaiLocationPath

视频缩略图的本地路径。

◆ ThumbnailRemotePath

string AgoraChat.MessageBody.VideoBody.ThumbnailRemotePath

视频缩略图在服务器端的存储路径。

◆ ThumbnailSecret

string AgoraChat.MessageBody.VideoBody.ThumbnailSecret

缩略图下载密钥。

◆ ThumbnailDownStatus

DownLoadStatus AgoraChat.MessageBody.VideoBody.ThumbnailDownStatus = DownLoadStatus.PENDING

缩略图下载状态。

◆ Height

double AgoraChat.MessageBody.VideoBody.Height

视频的宽度和高度,单位为像素。

◆ Duration

int AgoraChat.MessageBody.VideoBody.Duration

视频时长,单位为秒。