9 #ifndef INERtcChannel_h
10 #define INERtcChannel_h
12 #import <Foundation/Foundation.h>
17 #pragma clang diagnostic push
18 #pragma clang diagnostic ignored "-Wdocumentation"
20 NS_ASSUME_NONNULL_BEGIN
164 - (int)joinChannelWithToken:(NSString *)token
242 - (int)joinChannelWithToken:(NSString *)token
321 - (int)joinChannelWithToken:(NSString *)token
324 completion:(
void(^)(NSError * _Nullable error, uint64_t channelId, uint64_t elapesd, uint64_t uid,
NERtcJoinChannelExtraInfo * _Nullable info))completion;
416 - (int)enableLocalAudio:(BOOL)enabled;
469 - (int)enableLocalVideo:(BOOL)enabled;
616 - (int)enableDualStreamMode:(BOOL)enable;
942 - (int)subscribeRemoteAudio:(BOOL)subscribe forUserID:(uint64_t)userID;
992 - (int)subscribeAllRemoteAudio:(BOOL)subscribe;
1022 - (int)setAudioSubscribeOnlyBy:(NSArray<NSNumber*> *)uidArray;
1073 - (int)muteLocalAudio:(BOOL)muted;
1109 - (int)enableAudioVolumeIndication:(BOOL)enable interval:(uint64_t)interval vad:(BOOL)enableVad;
1267 - (int)setupRemoteVideoCanvas:(
NERtcVideoCanvas * _Nullable)canvas forUserID:(uint64_t)userID;
1436 - (int)muteLocalVideo:(BOOL)muted;
1625 - (int)adjustUserPlaybackSignalVolume:(uint32_t)volume forUserID:(uint64_t)userID;
1663 - (int)adjustChannelPlaybackSignalVolume:(uint32_t)volume;
1665 #pragma mark - Audio Sub Stream
1691 - (int)enableLocalSubStreamAudio:(BOOL)enabled;
1748 - (int)subscribeRemoteSubStreamAudio:(BOOL)subscribe forUserID:(uint64_t)userID;
1774 - (int)muteLocalSubStreamAudio:(BOOL)muted;
1777 #pragma mark - Sub Stream
2023 - (int)setupRemoteSubStreamVideoCanvas:(
NERtcVideoCanvas *)canvas forUserID:(uint64_t)userID;
2079 - (int)subscribeRemoteSubStreamVideo:(BOOL)subscribe forUserID:(uint64_t)userID;
2168 - (int)setRemoteHighPriorityAudioStream:(BOOL)enable forUserID:(uint64_t)userID streamType:(
NERtcAudioStreamType)streamType;
2171 #pragma mark - Snapshot
2310 - (int)sendSEIMsg:(NSData *)data;
2312 #pragma mark - Live Stream
2769 - (int)updatePermissionKey:(NSString *)key;
2771 #pragma mark - Other
2782 - (int)reportCustomEvent:(NSString *)eventName
2783 customIdentify:(NSString *)customIdentify
2784 param:(NSDictionary *)param;
2788 NS_ASSUME_NONNULL_END
2790 #pragma clang diagnostic pop
void(^ NERtcTakeSnapshotCallback)(int errorCode, UIImage *_Nullable image)
截图结果 block 回调。
Definition: INERtcEngine.h:64
void(^ NERtcJoinChannelCompletion)(NSError *_Nullable error, uint64_t channelId, uint64_t elapesd, uint64_t uid)
加入房间 block。
Definition: INERtcEngine.h:36
void(^ NERtcLiveStreamCompletion)(NSString *taskId, kNERtcLiveStreamError errorCode)
互动直播推流 block。
Definition: INERtcEngine.h:50
NERtcMediaPubType
媒体 pub 类型。
Definition: NERtcEngineEnum.h:235
NERtcConnectionStateType
当前房间的连接状态。
Definition: NERtcEngineEnum.h:45
NERtcCameraPosition
指定的摄像头位置。
Definition: NERtcEngineEnum.h:1360
NERtcRemoteVideoStreamType
远端视频流类型。
Definition: NERtcEngineEnum.h:636
NERtcStreamFallbackOptions
Definition: NERtcEngineEnum.h:1692
NERtcClientRole
用户角色。
Definition: NERtcEngineEnum.h:206
NERtcStreamChannelType
SEI发送的流通道类型。
Definition: NERtcEngineEnum.h:1043
NERtcVideoRenderScaleMode
视频渲染缩放模式。
Definition: NERtcEngineEnum.h:712
NERtcMediaPriorityType
Definition: NERtcEngineEnum.h:1671
NERtcAudioStreamType
音频流类型,目前同时支持音频两路流:主流和辅流
Definition: NERtcEngineEnum.h:1646
摄像头采集配置。
Definition: NERtcEngineBase.h:485
joinChannel 时的一些可选信息
Definition: NERtcEngineBase.h:2919
直播推流任务的配置。
Definition: NERtcEngineBase.h:1283
视频画布设置。
Definition: NERtcEngineBase.h:293
本地视频发送配置
Definition: NERtcEngineBase.h:539
视频帧信息。
Definition: NERtcEngineBase.h:1582
本地辅流发送配置。
Definition: NERtcEngineBase.h:645
INERtcChannel 类在指定房间中实现实时音视频功能。通过创建多个 NERtcChannel 对象,用户可以同时加入多个房间。
Definition: INERtcChannel.h:32
int switchCamera()
切换前置/后置摄像头。 该方法需要在相机启动后调用,例如调用 startPreview 或 joinChannel 后。
int leaveChannel()
离开音视频房间。 通过本接口可以实现挂断或退出通话,并释放本房间内的相关资源。
int stopScreenCapture()
关闭屏幕共享。 通过此接口可以实现关闭屏幕共享辅流。
NERtcConnectionStateType connectionState()
获取当前房间连接状态。
int stopChannelMediaRelay()
停止跨房间媒体流转发。 通常在主播离开房间时,跨房间媒体流转发会自动停止;您也可以根据需要随时调用该方法,此时主播会退出所有目标房间。
int cleanupChannelMediaStatsObserver()
清除全部媒体统计信息观测器。
NSString * getChannelName()
获取当前房间名。
NERtcChannelDelegate 类监听和报告指定房间的事件和数据。
Definition: NERtcChannelDelegate.h:30