BMXVideoAttachment Class Reference#
Inherits from BMXFileAttachment :
BMXMessageAttachment :
BMXBaseObject :
NSObject
Declared in floo_proxy.h
Overview#
@interface 视频消息附件
Class Methods#
dynamicCastWithAttachment:#
消息附件强制转换为视频附件
+ (BMXVideoAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment
Parameters#
attachment
附件
Return Value#
BMXVideoAttachment
Declared In#
floo_proxy.h
Instance Methods#
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="dynamicCastWithAttachment:" %}{% endlanying_code_snippet %}
clone#
克隆函数
- (BMXMessageAttachment *)clone
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="clone" %}{% endlanying_code_snippet %}
dealloc#
- (void)dealloc
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="dealloc" %}{% endlanying_code_snippet %}
duration#
视频片段时长
- (int)duration
Return Value#
int
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="duration" %}{% endlanying_code_snippet %}
initWithPath:duration:size:#
- (id)initWithPath:(NSString )path duration:(int)duration size:(BMXMessageAttachmentSize )size
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="initWithPath:duration:size:" %}{% endlanying_code_snippet %}
initWithPath:duration:size:displayName:#
构造函数,构建发送视频消息附件
- (id)initWithPath:(NSString )path duration:(int)duration size:(BMXMessageAttachmentSize )size displayName:(NSString )displayName*
Parameters#
path
文件的本地路径
duration
视频片段时长
size
视频大小,宽度和高度
displayName
文件展示名
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="initWithPath:duration:size:displayName:" %}{% endlanying_code_snippet %}
initWithPath:thumbnailPath:duration:size:#
- (id)initWithPath:(NSString )path thumbnailPath:(NSString )thumbnailPath duration:(int)duration size:(BMXMessageAttachmentSize )size*
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="initWithPath:thumbnailPath:duration:size:" %}{% endlanying_code_snippet %}
initWithPath:thumbnailPath:duration:size:displayName:#
构造函数,构建发送视频消息附件
- (id)initWithPath:(NSString )path thumbnailPath:(NSString )thumbnailPath duration:(int)duration size:(BMXMessageAttachmentSize )size displayName:(NSString )displayName
Parameters#
path
文件的本地路径
thumbnailPath
缩略图文件的本地路径
duration
视频片段时长
size
视频大小,宽度和高度
displayName
文件展示名
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="initWithPath:thumbnailPath:duration:size:displayName:" %}{% endlanying_code_snippet %}
initWithRatelUrl:duration:size:displayName:fileLength:#
构造函数,构建接收视频消息附件
- (id)initWithRatelUrl:(NSString )ratelUrl duration:(int)duration size:(BMXMessageAttachmentSize )size displayName:(NSString )displayName fileLength:(long long)fileLength*
Parameters#
ratelUrl
ratel文件服务器地址
duration
视频片段时长
size
视频大小,宽度和高度
displayName
文件展示名
fileLength
文件大小
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="initWithRatelUrl:duration:size:displayName:fileLength:" %}{% endlanying_code_snippet %}
initWithRatelUrl:thumbnailRatelUrl:duration:size:displayName:fileLength:#
构造函数,构建接收视频消息附件
- (id)initWithRatelUrl:(NSString )ratelUrl thumbnailRatelUrl:(NSString )thumbnailRatelUrl duration:(int)duration size:(BMXMessageAttachmentSize )size displayName:(NSString )displayName fileLength:(long long)fileLength
Parameters#
ratelUrl
ratel文件服务器地址
thumbnailRatelUrl
缩略图ratel文件服务器地址
duration
视频片段时长
size
视频大小,宽度和高度
displayName
文件展示名
fileLength
文件大小
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="initWithRatelUrl:thumbnailRatelUrl:duration:size:displayName:fileLength:" %}{% endlanying_code_snippet %}
setThumbnail:#
设置发送视频片段消息缩略图
- (void)setThumbnail:(NSString )path*
Parameters#
path
视频片段消息缩略图
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="setThumbnail:" %}{% endlanying_code_snippet %}
setThumbnailRatelUrl:#
设置发送视频片段消息缩略图ratel服务器路径
- (void)setThumbnailRatelUrl:(NSString )thumbnailRatelUrl*
Parameters#
thumbnailRatelUrl
视频片段消息缩略图服务器路径
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="setThumbnailRatelUrl:" %}{% endlanying_code_snippet %}
size#
视频大小,宽度和高度
- (BMXMessageAttachmentSize *)size
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="size" %}{% endlanying_code_snippet %}
thumbnailDownloadStatus#
缩略图下载状态
- (BMXMessageAttachment_DownloadStatus)thumbnailDownloadStatus
Return Value#
DownloadStatus
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailDownloadStatus" %}{% endlanying_code_snippet %}
thumbnailPath#
缩略图本地路径
- (NSString *)thumbnailPath
Return Value#
NSString
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailPath" %}{% endlanying_code_snippet %}
thumbnailRatelUrl#
缩略图ratel服务器路径
- (NSString *)thumbnailRatelUrl
Return Value#
NSString
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailRatelUrl" %}{% endlanying_code_snippet %}
thumbnailUrl#
远程缩略图使用URL
- (NSString *)thumbnailUrl
Return Value#
NSString
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailUrl" %}{% endlanying_code_snippet %}
type#
返回文件类型
- (BMXMessageAttachment_Type)type
Return Value#
Declared In#
floo_proxy.h
Example:
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="type" %}{% endlanying_code_snippet %}