AgoraChat SDK for Unity and Windows v1.4.0
Loading...
Searching...
No Matches
AgoraChat.MessageBody.VideoBody Class Reference
Inheritance diagram for AgoraChat.MessageBody.VideoBody:
AgoraChat.MessageBody.FileBody AgoraChat.IMessageBody

Public Member Functions

 VideoBody (string localPath, string displayName, int duration, long fileSize=0, string thumbnailLocalPath="", double width=0, double height=0)
Public Member Functions inherited from AgoraChat.MessageBody.FileBody
 FileBody (string localPath, string displayName="", long fileSize=0)

Public Attributes

string ThumbnaiLocationPath
string ThumbnailRemotePath
string ThumbnailSecret
DownLoadStatus ThumbnailDownStatus = DownLoadStatus.PENDING
double Height
double Width
int Duration
Public Attributes inherited from AgoraChat.MessageBody.FileBody
string LocalPath
string DisplayName
string Secret
string RemotePath
long FileSize
DownLoadStatus DownStatus = DownLoadStatus.PENDING
Public Attributes inherited from AgoraChat.IMessageBody
MessageBodyType Type

Additional Inherited Members

Properties inherited from AgoraChat.IMessageBody
long OperationTime [get, set]
string OperatorId [get, set]
long OperationCount [get, set]

Detailed Description

The video message body.

Constructor & Destructor Documentation

◆ VideoBody()

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

The video message body constructor.

Parameters
localPathThe local path of the video message.
displayNameThe display name of the video file.
durationThe video duration in seconds.
fileSizeThe size of the video file, in bytes.
thumbnailLocalPathThe local path of the video thumbnail.
widthThe video width in pixels.
HeightThe video height in pixels.

Member Data Documentation

◆ ThumbnaiLocationPath

string AgoraChat.MessageBody.VideoBody.ThumbnaiLocationPath

The local path of the video thumbnail.

◆ ThumbnailRemotePath

string AgoraChat.MessageBody.VideoBody.ThumbnailRemotePath

The URL of the video thumbnail.

◆ ThumbnailSecret

string AgoraChat.MessageBody.VideoBody.ThumbnailSecret

The secret for downloading the thumbnail.

◆ ThumbnailDownStatus

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

The status for downloading the thumbnail.

◆ Height

double AgoraChat.MessageBody.VideoBody.Height

The height and width of the video, in pixels.

◆ Duration

int AgoraChat.MessageBody.VideoBody.Duration

The video duration in seconds.