视频消息附件
#include <bmx_video_attachment.h>
Inherits from floo::BMXFileAttachment, floo::BMXMessageAttachment, BMXBaseObject
Public Functions
BMXVideoAttachment(const std::string & path, int duration, const [Size] & size, const std::string & displayName ="")
构造函数,构建发送视频消息附件
BMXVideoAttachment(const std::string & path, const std::string & thumbnailPath, int duration, const [Size] & size, const std::string & displayName ="")
构造函数,构建发送视频消息附件
BMXVideoAttachment(const std::string & ratelUrl, int duration, const [Size] & size, const std::string & displayName, int64_t fileLength)
构造函数,构建接收视频消息附件
BMXVideoAttachment(const std::string & ratelUrl, const std::string & thumbnailRatelUrl, int duration, const [Size] & size, const std::string & displayName, int64_t fileLength)
构造函数,构建接收视频消息附件
virtual BMXMessageAttachmentPtr
Additional inherited members
Public Functions inherited from floo::BMXFileAttachment
BMXFileAttachment(const std::string & path, const std::string & displayName ="")
构造函数,构建发送文件消息附件
BMXFileAttachment(const std::string & ratelUrl, const std::string & displayName, int64_t fileLength)
构造函数,构建接收文件消息附件
Protected Attributes inherited from floo::BMXFileAttachment
Friends inherited from floo::BMXFileAttachment
Public Types inherited from floo::BMXMessageAttachment
Type { Image, Voice, Video, File, Location, Command, Forward}
附件类型
DownloadStatus { Downloaing, Successed, Failed, NotStart, Canceled}
附件下载状态
Public Functions inherited from floo::BMXMessageAttachment
Public Functions Documentation
function BMXVideoAttachment
构造函数,构建发送视频消息附件
Parameters:
function BMXVideoAttachment
构造函数,构建发送视频消息附件
Parameters:
function BMXVideoAttachment
构造函数,构建接收视频消息附件
Parameters:
function BMXVideoAttachment
构造函数,构建接收视频消息附件
Parameters:
thumbnailRatelUrl 缩略图ratel文件服务器地址
function ~BMXVideoAttachment
析构函数
返回文件类型
Return: Type
Reimplements: floo::BMXFileAttachment::type
克隆函数
Return: BMXMessageAttachmentPtr
Reimplements: floo::BMXFileAttachment::clone
视频大小,宽度和高度
Return: Size
function duration
视频片段时长
Return: int32_t
function setThumbnail
设置发送视频片段消息缩略图
Parameters:
function thumbnailPath
缩略图本地路径
Return: std::string
function thumbnailUrl
远程缩略图使用URL
Return: std::string
function setThumbnailRatelUrl
设置发送视频片段消息缩略图ratel服务器路径
Parameters:
thumbnailRatelUrl 视频片段消息缩略图服务器路径
function thumbnailRatelUrl
缩略图ratel服务器路径
Return: std::string
function thumbnailDownloadStatus
缩略图下载状态
Return: DownloadStatus
friend Encoder< BMXVideoAttachment >
friend Decoder< BMXVideoAttachment >
Updated on 2022-01-26 at 17:20:40 +0800