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

BMXRTCEngine Class Reference#

Inherits from NSObject
Declared in floo_proxy.h

Overview#

@interface RTC Engine

Properties#

swigCMemOwn#

@property (nonatomic) BOOL swigCMemOwn

swigCPtr#

@property (nonatomic) void *swigCPtr

Instance Methods#

addDelegate:#

添加聊天監聽者

- (void)addDelegate:(id<BMXRTCEngineProtocol>)aDelegate

Parameters#

listener
聊天監聽者

Declared In#

  • floo_proxy.h


Example:

addDelegate:delegateQueue:#

- (void)addDelegate:(id<BMXRTCEngineProtocol>)aDelegate delegateQueue:(dispatch_queue_t)aQueue


Example:

addRTCEngineListener:#

- (void)addRTCEngineListener:(id<BMXRTCEngineProtocol>)listener


Example:

dealloc#

- (void)dealloc


Example:

destroy#

銷燬音視訊Engine

- (void)destroy

Declared In#

  • floo_proxy.h


Example:

getRTCConfig#

取得RTC設定

- (BMXRTCConfig *)getRTCConfig

Return Value#

BMXRTCConfig

Declared In#

  • floo_proxy.h


Example:

initWithCptr:swigOwnCObject:#

- (id)initWithCptr:(void )cptr swigOwnCObject:(BOOL)ownCObject*


Example:

joinRoomWithAuth:#

加入頻道

- (BMXErrorCode)joinRoomWithAuth:(BMXRoomAuth )auth*

Parameters#

auth
加入頻道時的認證信息

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

leaveRoom#

離開頻道

- (BMXErrorCode)leaveRoom

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

muteLocalAudioWithMute:#

打開關閉本地音訊

- (BMXErrorCode)muteLocalAudioWithMute:(BOOL)mute

Parameters#

mute
true為打開,false為關閉

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

muteLocalVideoWithType:mute:#

打開關閉本地視訊

- (BMXErrorCode)muteLocalVideoWithType:(BMXVideoMediaType)type mute:(BOOL)mute

Parameters#

type
視訊流類型

mute
true為打開,false為關閉

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

muteRemoteAudioWithStream:mute:#

打開關閉遠端音訊

- (BMXErrorCode)muteRemoteAudioWithStream:(BMXStream )stream mute:(BOOL)mute*

Parameters#

stream
遠端流

mute
true為打開,false為關閉

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

muteRemoteVideoWithStream:mute:#

打開關閉遠端視訊

- (BMXErrorCode)muteRemoteVideoWithStream:(BMXStream )stream mute:(BOOL)mute*

Parameters#

stream
遠端流

mute
true為打開,false為關閉

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

publishWithType:hasVideo:hasAudio:#

發佈流信息

- (BMXErrorCode)publishWithType:(BMXVideoMediaType)type hasVideo:(BOOL)hasVideo hasAudio:(BOOL)hasAudio

Parameters#

type
流媒體類型

hasVideo
是否存在視訊流

hasAudio
是否存在音訊流

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

removeDelegate:#

移除聊天監聽者

- (void)removeDelegate:(id<BMXRTCEngineProtocol>)aDelegate

Parameters#

listener
聊天監聽者

Declared In#

  • floo_proxy.h


Example:

removeRTCEngineListener:#

- (void)removeRTCEngineListener:(id<BMXRTCEngineProtocol>)listener


Example:

setAudioProfile:#

設定音訊編碼格式

- (BMXErrorCode)setAudioProfile:(BMXAudioProfile)profile

Parameters#

profile
音訊編碼格式

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setRoomType:#

設定Room的類型

- (BMXErrorCode)setRoomType:(BMXRoomType)type

Parameters#

type
Room類型

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setStreamRole:#

設定流操作權限

- (BMXErrorCode)setStreamRole:(BMXStreamRole)role

Parameters#

role
操作權限,推流、拉流、推拉流。

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setVideoCodec:#

設定視訊編碼格式類型

- (BMXErrorCode)setVideoCodec:(BMXVideoCodec)codec

Parameters#

codec
VP8編碼、H264編碼

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setVideoProfile:#

設定視訊編碼格式類型

- (BMXErrorCode)setVideoProfile:(BMXVideoConfig )videoConfig*

Parameters#

codec
VP8編碼、H264編碼

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

startPreviewWithCanvas:#

開啟本地渲染

- (BMXErrorCode)startPreviewWithCanvas:(BMXVideoCanvas )canvas*

Parameters#

canvas
畫布屬性信息

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

startRemoteViewWithCanvas:#

開啟遠端渲染

- (BMXErrorCode)startRemoteViewWithCanvas:(BMXVideoCanvas )canvas*

Parameters#

canvas
畫布屬性信息

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

stopPreviewWithCanvas:#

停止本地渲染

- (BMXErrorCode)stopPreviewWithCanvas:(BMXVideoCanvas )canvas*

Parameters#

canvas
畫布屬性信息

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

stopRemoteViewWithCanvas:#

停止遠端渲染

- (BMXErrorCode)stopRemoteViewWithCanvas:(BMXVideoCanvas )canvas*

Parameters#

canvas
畫布屬性信息

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

subscribeWithStream:#

訂閱流信息

- (BMXErrorCode)subscribeWithStream:(BMXStream )stream*

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

switchCamera#

切換攝像頭

- (BMXErrorCode)switchCamera

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

unPublishWithType:#

停止發佈流

- (BMXErrorCode)unPublishWithType:(BMXVideoMediaType)type

Parameters#

type
流媒體類型

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

unSubscribeWithStream:#

停止訂閱流

- (BMXErrorCode)unSubscribeWithStream:(BMXStream )stream*

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h
自動產生的 API 內容,僅在必要位置補充精簡的 AI 解說。