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:
Add a RTC engine listener
- (void)addDelegate:(id<BMXRTCEngineProtocol>)*aDelegate*
Parameters
listener
Declared In
floo_proxy.h
addDelegate:delegateQueue:
- (void)addDelegate:(id<BMXRTCEngineProtocol>)*aDelegate* delegateQueue:(dispatch_queue_t)*aQueue*
addRTCEngineListener:
- (void)addRTCEngineListener:(id<BMXRTCEngineProtocol>)*listener*
dealloc
- (void)dealloc
destroy
Destroy the RTC engine
- (void)destroy
Declared In
floo_proxy.h
getRTCConfig
Get RTC config
- (BMXRTCConfig *)getRTCConfig
Return Value
Declared In
floo_proxy.h
initWithCptr:swigOwnCObject:
- (id)initWithCptr:(void *)*cptr* swigOwnCObject:(BOOL)*ownCObject*
joinRoomWithAuth:
Join a room
- (BMXErrorCode)joinRoomWithAuth:(BMXRoomAuth *)*auth*
Parameters
auth
Authorization information
Return Value
Declared In
floo_proxy.h
leaveRoom
Leave a room
- (BMXErrorCode)leaveRoom
Return Value
Declared In
floo_proxy.h
muteLocalAudioWithMute:
Mute or unmute my audio
- (BMXErrorCode)muteLocalAudioWithMute:(BOOL)*mute*
Parameters
mute
Return Value
Declared In
floo_proxy.h
muteLocalVideoWithType:mute:
Mute or unmute my video
- (BMXErrorCode)muteLocalVideoWithType:(BMXVideoMediaType)*type* mute:(BOOL)*mute*
Parameters
type
Video media type
mute
Return Value
Declared In
floo_proxy.h
muteRemoteAudioWithStream:mute:
Mute or unmute remote video
- (BMXErrorCode)muteRemoteAudioWithStream:(BMXStream *)*stream* mute:(BOOL)*mute*
Parameters
stream
mute
Return Value
Declared In
floo_proxy.h
muteRemoteVideoWithStream:mute:
Mute or unmute remote video
- (BMXErrorCode)muteRemoteVideoWithStream:(BMXStream *)*stream* mute:(BOOL)*mute*
Parameters
stream
mute
Return Value
Declared In
floo_proxy.h
publishWithType:hasVideo:hasAudio:
Publish my video and audio streams
- (BMXErrorCode)publishWithType:(BMXVideoMediaType)*type* hasVideo:(BOOL)*hasVideo* hasAudio:(BOOL)*hasAudio*
Parameters
type
Stream type
hasVideo
hasAudio
Return Value
Declared In
floo_proxy.h
removeDelegate:
Remove a RTC engine listener
- (void)removeDelegate:(id<BMXRTCEngineProtocol>)*aDelegate*
Parameters
listener
Declared In
floo_proxy.h
removeRTCEngineListener:
- (void)removeRTCEngineListener:(id<BMXRTCEngineProtocol>)*listener*
setAudioProfile:
Set audio settings
- (BMXErrorCode)setAudioProfile:(BMXAudioProfile)*profile*
Parameters
profile
Return Value
Declared In
floo_proxy.h
setRoomType:
Set the room type
- (BMXErrorCode)setRoomType:(BMXRoomType)*type*
Parameters
type
Room类型
Return Value
Declared In
floo_proxy.h
setStreamRole:
Set stream operation permissions
- (BMXErrorCode)setStreamRole:(BMXStreamRole)*role*
Parameters
role
Return Value
Declared In
floo_proxy.h
setVideoCodec:
Set video codec
- (BMXErrorCode)setVideoCodec:(BMXVideoCodec)*codec*
Parameters
codec
Return Value
Declared In
floo_proxy.h
setVideoProfile:
Set video codec
- (BMXErrorCode)setVideoProfile:(BMXVideoConfig *)*videoConfig*
Parameters
codec
Return Value
Declared In
floo_proxy.h
startPreviewWithCanvas:
Start previewing local video
- (BMXErrorCode)startPreviewWithCanvas:(BMXVideoCanvas *)*canvas*
Parameters
canvas
Return Value
Declared In
floo_proxy.h
startRemoteViewWithCanvas:
Start previewing remote video
- (BMXErrorCode)startRemoteViewWithCanvas:(BMXVideoCanvas *)*canvas*
Parameters
canvas
Return Value
Declared In
floo_proxy.h
stopPreviewWithCanvas:
Stop previewing local video
- (BMXErrorCode)stopPreviewWithCanvas:(BMXVideoCanvas *)*canvas*
Parameters
canvas
Return Value
Declared In
floo_proxy.h
stopRemoteViewWithCanvas:
Stop previewing remote video
- (BMXErrorCode)stopRemoteViewWithCanvas:(BMXVideoCanvas *)*canvas*
Parameters
canvas
Return Value
Declared In
floo_proxy.h
subscribeWithStream:
Subscribe a stream
- (BMXErrorCode)subscribeWithStream:(BMXStream *)*stream*
Return Value
Declared In
floo_proxy.h
switchCamera
Switch cameras
- (BMXErrorCode)switchCamera
Return Value
Declared In
floo_proxy.h
unPublishWithType:
Unpublish my video and audio streams
- (BMXErrorCode)unPublishWithType:(BMXVideoMediaType)*type*
Parameters
type
Stream type
Return Value
Declared In
floo_proxy.h
unSubscribeWithStream:
Unsubscribe a stream
- (BMXErrorCode)unSubscribeWithStream:(BMXStream *)*stream*
Return Value
Declared In
floo_proxy.h
Example: