9 #ifndef INERtcChannel_h
10 #define INERtcChannel_h
12 #import <Foundation/Foundation.h>
17 NS_ASSUME_NONNULL_BEGIN
119 - (int)joinChannelWithToken:(NSString *)token
169 - (int)enableLocalAudio:(BOOL)enabled;
192 - (int)enableLocalVideo:(BOOL)enabled;
318 - (int)enableDualStreamMode:(BOOL)enable;
515 - (int)subscribeRemoteAudio:(BOOL)subscribe forUserID:(uint64_t)userID;
537 - (int)subscribeAllRemoteAudio:(BOOL)subscribe;
567 - (int)setAudioSubscribeOnlyBy:(NSArray<NSNumber*> *)uidArray;
600 - (int)muteLocalAudio:(BOOL)muted;
675 - (int)setupRemoteVideoCanvas:(
NERtcVideoCanvas * _Nullable)canvas forUserID:(uint64_t)userID;
760 - (int)muteLocalVideo:(BOOL)muted;
880 - (int)adjustUserPlaybackSignalVolume:(uint32_t)volume forUserID:(uint64_t)userID;
882 #pragma mark -- Audio Sub Stream
908 - (int)enableLocalSubStreamAudio:(BOOL)enabled;
937 - (int)subscribeRemoteSubStreamAudio:(BOOL)subscribe forUserID:(uint64_t)userID;
963 - (int)muteLocalSubStreamAudio:(BOOL)muted;
966 #pragma mark -- Sub Stream
1088 - (int)setupRemoteSubStreamVideoCanvas:(
NERtcVideoCanvas *)canvas forUserID:(uint64_t)userID;
1112 - (int)subscribeRemoteSubStreamVideo:(BOOL)subscribe forUserID:(uint64_t)userID;
1172 - (int)setRemoteHighPriorityAudioStream:(BOOL)enable forUserID:(uint64_t)userID streamType:(
NERtcAudioStreamType)streamType;
1174 #pragma mark - waterMark
1230 forUserID:(uint64_t)userID
1233 #pragma mark -- snapshot
1372 - (int)sendSEIMsg:(NSData *)data;
1374 #pragma mark -- Live Stream
1663 NS_ASSUME_NONNULL_END
void(^ NERtcTakeSnapshotCallback)(int errorCode, UIImage *_Nullable image)
截图结果 block 回调。
Definition: INERtcEngine.h:60
NS_ASSUME_NONNULL_BEGIN typedef void(^ NERtcJoinChannelCompletion)(NSError *_Nullable error, uint64_t channelId, uint64_t elapesd, uint64_t uid)
加入房间 block。
void(^ NERtcLiveStreamCompletion)(NSString *taskId, kNERtcLiveStreamError errorCode)
互动直播推流 block。
Definition: INERtcEngine.h:46
NERtcMediaPubType
媒体 pub 类型。
Definition: NERtcEngineEnum.h:206
NERtcConnectionStateType
当前房间的连接状态。
Definition: NERtcEngineEnum.h:45
NERtcRemoteVideoStreamType
远端视频流类型。
Definition: NERtcEngineEnum.h:598
NERtcStreamFallbackOptions
Definition: NERtcEngineEnum.h:1654
NERtcClientRole
用户角色。
Definition: NERtcEngineEnum.h:177
NERtcStreamChannelType
SEI发送的流通道类型。
Definition: NERtcEngineEnum.h:998
NERtcVideoRenderScaleMode
视频渲染缩放模式。
Definition: NERtcEngineEnum.h:674
NERtcMediaPriorityType
Definition: NERtcEngineEnum.h:1633
NERtcAudioStreamType
音频流类型,目前同时支持音频两路流:主流和辅流
Definition: NERtcEngineEnum.h:1608
摄像头采集配置。
Definition: NERtcEngineBase.h:449
画布水印设置。 同时设置文字、时间戳或图片水印时,如果不同类型的水印位置有重叠,会按照图片、文本、时间戳的顺序进行图层覆盖。
Definition: NERtcEngineBase.h:1893
直播推流任务的配置。
Definition: NERtcEngineBase.h:1219
视频画布设置。
Definition: NERtcEngineBase.h:261
本地视频发送配置
Definition: NERtcEngineBase.h:503
本地辅流发送配置。
Definition: NERtcEngineBase.h:609
INERtcChannel 类在指定房间中实现实时音视频功能。通过创建多个 NERtcChannel 对象,用户可以同时加入多个房间。
Definition: INERtcChannel.h:29
int leaveChannel()
离开房间,即挂断或退出通话。 结束通话时,必须调用leaveChannel结束通话,否则无法开始下一次通话。 成功调用该方法离开房间后,本地会触发 onNERtcEngineDidLeaveChan...
int stopScreenCapture()
关闭辅流形式的屏幕共享。 如果您在加入房间后调用该方法关闭辅流,调用成功后,远端触发 onNERtcEngineUserSubStreamDidStop 回调。
NERtcConnectionStateType connectionState()
获取当前房间连接状态。
int stopChannelMediaRelay()
停止跨房间媒体流转发。 主播离开房间时,跨房间媒体流转发自动停止,您也可以在需要的时候随时调用 stopChannelMediaRelay 方法,此时主播会退出所有目标房间。
int cleanupChannelMediaStatsObserver()
清除全部媒体统计信息观测器。
NSString * getChannelName()
获取当前房间名。
NERtcChannelDelegate 类监听和报告指定房间的事件和数据。
Definition: NERtcChannelDelegate.h:27