The video message body class.

Hierarchy

  • _ChatFileMessageBody
    • ChatVideoMessageBody

Constructors

  • Parameters

    • params: {
          displayName: string;
          duration?: number;
          fileSize?: number;
          fileStatus?: number;
          height?: number;
          lastModifyOperatorId?: string;
          lastModifyTime?: number;
          localPath: string;
          modifyCount?: number;
          remotePath?: string;
          secret?: string;
          thumbnailLocalPath?: string;
          thumbnailRemotePath?: string;
          thumbnailSecret?: string;
          thumbnailStatus?: ChatDownloadStatus;
          width?: number;
      }
      • displayName: string
      • Optionalduration?: number
      • OptionalfileSize?: number
      • OptionalfileStatus?: number
      • Optionalheight?: number
      • OptionallastModifyOperatorId?: string
      • OptionallastModifyTime?: number
      • localPath: string
      • OptionalmodifyCount?: number
      • OptionalremotePath?: string
      • Optionalsecret?: string
      • OptionalthumbnailLocalPath?: string
      • OptionalthumbnailRemotePath?: string
      • OptionalthumbnailSecret?: string
      • OptionalthumbnailStatus?: ChatDownloadStatus
      • Optionalwidth?: number

    Returns ChatVideoMessageBody

Properties

displayName: string

The file name.

duration: number

The video duration in seconds.

fileSize: number

The size of the file in bytes.

fileStatus: ChatDownloadStatus

The download status of the attachment file. See ChatDownloadStatus.

height: number

The video height in pixels.

lastModifyOperatorId?: string

The user ID of the operator that modified the message last time.

lastModifyTime?: number

The UNIX timestamp of the last message modification, in milliseconds.

localPath: string = ''

The local path of the file.

modifyCount?: number

The number of times a message is modified.

remotePath: string

The path of the attachment file in the server.

secret: string

The token to download the file attachment.

thumbnailLocalPath: string

The local path of the video thumbnail.

thumbnailRemotePath: string

The URL of the thumbnail on the server.

thumbnailSecret: string

The secret to download the video thumbnail.

thumbnailStatus: ChatDownloadStatus

The download status of the video thumbnail. See ChatDownloadStatus

The message type. See ChatMessageType.

width: number

The video width in pixels.