藍鶯開發者
Web & Mini ProgramiOSAndroidC++Server API

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#


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="dynamicCastWithAttachment:" %}{% endlanying_code_snippet %}

clone#

克隆函數

- (BMXMessageAttachment *)clone

Return Value#

BMXMessageAttachment

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="clone" %}{% endlanying_code_snippet %}

dealloc#

- (void)dealloc


Example:

{% 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


Example:

{% 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


Example:

{% 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


Example:

{% 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*


Example:

{% 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


Example:

{% 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


Example:

{% 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


Example:

{% 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


Example:

{% 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


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="setThumbnailRatelUrl:" %}{% endlanying_code_snippet %}

size#

視訊大小,寬度和高度

- (BMXMessageAttachmentSize *)size

Return Value#

BMXMessageAttachmentSize

Declared In#

  • floo_proxy.h


Example:

{% 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


Example:

{% 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


Example:

{% 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


Example:

{% 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


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailUrl" %}{% endlanying_code_snippet %}

type#

回傳檔案類型

- (BMXMessageAttachment_Type)type

Return Value#

BMXMessageAttachment_Type

Declared In#

  • floo_proxy.h

Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="type" %}{% endlanying_code_snippet %}
自動產生的 API 內容,僅在必要位置補充精簡的 AI 解說。