Unity and Windows API reference
Public 成员函数 | Public 属性 | 所有成员列表
ChatSDK.MessageBody.VideoBody类 参考
类 ChatSDK.MessageBody.VideoBody 继承关系图:
ChatSDK.MessageBody.FileBody ChatSDK.IMessageBody

Public 成员函数

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

Public 属性

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

额外继承的成员函数

- 静态 Public 成员函数 继承自 ChatSDK.IMessageBody
static IMessageBody Constructor (string jsonString, string type)
 

详细描述

视频消息体。

构造及析构函数说明

◆ VideoBody()

ChatSDK.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 ChatSDK.MessageBody.VideoBody.ThumbnaiLocationPath

视频缩略图的本地路径。

◆ ThumbnaiRemotePath

string ChatSDK.MessageBody.VideoBody.ThumbnaiRemotePath

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

◆ ThumbnaiSecret

string ChatSDK.MessageBody.VideoBody.ThumbnaiSecret

缩略图下载密钥。

◆ Height

double ChatSDK.MessageBody.VideoBody.Height

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

◆ Duration

int ChatSDK.MessageBody.VideoBody.Duration

视频时长,单位为秒。