NIMQChatMediaChannelManager Protocol Reference

Conforms to NSObject
Declared in NIMQChatMediaChannelManagerProtocol.h

Overview

圈组RTC频道管理器

  startTime required method

多媒体开始时间

@property (nonatomic, assign, readonly) NSInteger startTime

Discussion

多媒体开始时间

Declared In

NIMQChatMediaChannelManagerProtocol.h

  selfStatus required method

自己的音视频状态

@property (nonatomic, assign, readonly, nullable) NIMQChatMemberMediaStatusInfo *selfStatus

Discussion

自己的音视频状态

Declared In

NIMQChatMediaChannelManagerProtocol.h

  memberStatus required method

在线成员(不包括自己)音视频状态

@property (nonatomic, assign, readonly, nullable) NSArray<NIMQChatMemberMediaStatusInfo*> *memberStatus

Discussion

在线成员(不包括自己)音视频状态

Declared In

NIMQChatMediaChannelManagerProtocol.h

– connectChannel:ofServer:completion: required method

连接多媒体频道

- (void)connectChannel:(unsigned long long)channelId ofServer:(unsigned long long)serverId completion:(nullable NIMQChatMediaHandler)completion

Parameters

channelId

频道Id

serverId

服务器id

completion

回调结果

Discussion

连接多媒体频道

Declared In

NIMQChatMediaChannelManagerProtocol.h

– disconnectCompletion: required method

取消连接多媒体频道

- (void)disconnectCompletion:(nullable NIMQChatMediaHandler)completion

Parameters

completion

结果

Discussion

取消连接多媒体频道

Declared In

NIMQChatMediaChannelManagerProtocol.h

– updateMediaChannel:completion: required method

修改圈组多频道信息

- (void)updateMediaChannel:(NIMQChatUpdateMediaChannelParam *)param completion:(nullable NIMQChatHandler)completion

Parameters

param

传入参数

completion

结果回调

Discussion

修改圈组多频道信息

Declared In

NIMQChatMediaChannelManagerProtocol.h

– getMediaChannelInfo:completion: required method

获取多媒体频道信息

- (void)getMediaChannelInfo:(NIMQChatChannelIdInfo *)param completion:(nullable NIMQChatGetMediaChannelInfoHandler)completion

Parameters

param

传入参数

completion

结果回调

Discussion

获取多媒体频道信息

Declared In

NIMQChatMediaChannelManagerProtocol.h

– getMediaChannelOnlineMembers:completion: required method

查询多媒体频道在线成员信息

- (void)getMediaChannelOnlineMembers:(NIMQChatChannelIdInfo *)param completion:(nullable NIMQChatGetRTCChannelOnlineMembersHandler)completion

Parameters

param

传入参数

completion

结果回调

Discussion

查询多媒体频道在线成员信息

Declared In

NIMQChatMediaChannelManagerProtocol.h

– kickMemberOut:completion: required method

移除成员

- (void)kickMemberOut:(NSString *)accid completion:(NIMQChatMediaHandler)completion

Parameters

accid

用户id

completion

回调

Discussion

移除成员

Declared In

NIMQChatMediaChannelManagerProtocol.h

– switchCamera required method

切换摄像头

- (NSInteger)switchCamera

Discussion

切换摄像头

Declared In

NIMQChatMediaChannelManagerProtocol.h

– muteMyAudio: required method

关闭本端音频

- (void)muteMyAudio:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

关闭本端音频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unmuteMyAudio: required method

打开本端音频

- (void)unmuteMyAudio:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

打开本端音频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– muteMyVideo: required method

关闭本端视频

- (void)muteMyVideo:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

关闭本端视频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unmuteMyVideo: required method

打开本端视频

- (void)unmuteMyVideo:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

打开本端视频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– muteAudioWithAccId:completion: required method

关闭成员音频,操作其他成员会进行权限校验

- (void)muteAudioWithAccId:(NSString *)accid completion:(NIMQChatMediaHandler)completion

Parameters

accid

用户accid

completion

回调

Discussion

关闭成员音频,操作其他成员会进行权限校验

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unmuteAudioWithAccId:completion: required method

打开成员音频,如果accid为当前用户,则打开本端音频发送,操作其他成员会进行权限校验

- (void)unmuteAudioWithAccId:(NSString *)accid completion:(NIMQChatMediaHandler)completion

Parameters

accid

用户accid

completion

回调

Discussion

打开成员音频,如果accid为当前用户,则打开本端音频发送,操作其他成员会进行权限校验

Declared In

NIMQChatMediaChannelManagerProtocol.h

– muteVideoWithAccId:completion: required method

关闭成员视频,如果accid为当前用户,则关闭本端视频,操作其他成员会进行权限校验

- (void)muteVideoWithAccId:(NSString *)accid completion:(NIMQChatMediaHandler)completion

Parameters

accid

用户accid

completion

回调

Discussion

关闭成员视频,如果accid为当前用户,则关闭本端视频,操作其他成员会进行权限校验

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unmuteVideoWithAccId:completion: required method

打开成员视频, 如果accid为当前用户,则打开本端视频,操作其他成员会进行权限校验

- (void)unmuteVideoWithAccId:(NSString *)accid completion:(NIMQChatMediaHandler)completion

Parameters

accid

用户accid

completion

回调

Discussion

打开成员视频, 如果accid为当前用户,则打开本端视频,操作其他成员会进行权限校验

Declared In

NIMQChatMediaChannelManagerProtocol.h

– muteAllAudioWithCompletion: required method

静音所有人,打开音频的成员会被关闭音频并且无法再打开

- (void)muteAllAudioWithCompletion:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

静音所有人,打开音频的成员会被关闭音频并且无法再打开

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unmuteAllAudioWithCompletion: required method

解除静音所有人,所有成员可以自行打开关闭音频

- (void)unmuteAllAudioWithCompletion:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

解除静音所有人,所有成员可以自行打开关闭音频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– muteAllVideoWithCompletion: required method

所有人禁用视频,打开视频的成员会被关闭视频并且无法再打开

- (void)muteAllVideoWithCompletion:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

所有人禁用视频,打开视频的成员会被关闭视频并且无法再打开

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unmuteAllVideoWithCompletion: required method

解除所有人禁用视频,所有成员可以自行打开关闭视频

- (void)unmuteAllVideoWithCompletion:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

解除所有人禁用视频,所有成员可以自行打开关闭视频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– setupShareKitWithAppGroup: required method

应用外屏幕共享初始化 param appGroup App Group

- (void)setupShareKitWithAppGroup:(NSString *_Nonnull)appGroup

Discussion

应用外屏幕共享初始化 param appGroup App Group

Declared In

NIMQChatMediaChannelManagerProtocol.h

– startScreenShareWithCompletion: required method

开启本端屏幕共享

- (void)startScreenShareWithCompletion:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

开启本端屏幕共享

Declared In

NIMQChatMediaChannelManagerProtocol.h

– stopScreenShareWithCompletion: required method

关闭本端屏幕共享

- (void)stopScreenShareWithCompletion:(NIMQChatMediaHandler)completion

Parameters

completion

回调

Discussion

关闭本端屏幕共享

Declared In

NIMQChatMediaChannelManagerProtocol.h

– stopMemberScreenShareWithAccId:completion: required method

尝试关闭RTC频道内成员的屏幕共享,会进行权限校验。

- (void)stopMemberScreenShareWithAccId:(NSString *)accid completion:(NIMQChatMediaHandler)completion

Parameters

accid

成员账号Id

completion

回调

Discussion

尝试关闭RTC频道内成员的屏幕共享,会进行权限校验。

Declared In

NIMQChatMediaChannelManagerProtocol.h

– subscribeRemoteVideoStreamWithAccId:streamType: required method

订阅指定远端用户的视频流

- (NSInteger)subscribeRemoteVideoStreamWithAccId:(NSString *)accId streamType:(NIMQChatVideoStreamType)type

Parameters

accId

用户id

type

流类型

Discussion

订阅指定远端用户的视频流

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unsubscribeRemoteVideoStreamWithAccId:streamType: required method

取消订阅指定远端用户的视频流

- (NSInteger)unsubscribeRemoteVideoStreamWithAccId:(NSString *)accId streamType:(NIMQChatVideoStreamType)type

Parameters

accId

用户id

type

流类型

Discussion

取消订阅指定远端用户的视频流

Declared In

NIMQChatMediaChannelManagerProtocol.h

– subscribeRemoteVideoSubStreamWithAccId: required method

订阅指定远端用户辅流视频

- (NSInteger)subscribeRemoteVideoSubStreamWithAccId:(NSString *)accId

Parameters

accId

用户id

Discussion

订阅指定远端用户辅流视频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– unsubscribeRemoteVideoSubStreamWithAccId: required method

取消订阅指定远端用户辅流视频

- (NSInteger)unsubscribeRemoteVideoSubStreamWithAccId:(NSString *)accId

Parameters

accId

用户id

Discussion

取消订阅指定远端用户辅流视频

Declared In

NIMQChatMediaChannelManagerProtocol.h

– setupLocalVideoCanvas: required method

设置本端画布

- (NSInteger)setupLocalVideoCanvas:(NIMQChatVideoCanvas *_Nullable)canvas

Parameters

canvas

视频画布

Discussion

设置本端画布

Declared In

NIMQChatMediaChannelManagerProtocol.h

– setupRemoteVideoCanvas:accId: required method

设置远端画布

- (NSInteger)setupRemoteVideoCanvas:(NIMQChatVideoCanvas *_Nullable)canvas accId:(NSString *_Nonnull)accId

Parameters

canvas

视频画布

accId

用户ID

Discussion

设置远端画布

Declared In

NIMQChatMediaChannelManagerProtocol.h

– setupRemoteSubStreamVideoCanvas:accId: required method

设置远端辅流画布

- (NSInteger)setupRemoteSubStreamVideoCanvas:(NIMQChatVideoCanvas *_Nullable)canvas accId:(NSString *_Nonnull)accId

Parameters

canvas

视频画布

accId

用户ID

Discussion

设置远端辅流画布

Declared In

NIMQChatMediaChannelManagerProtocol.h

– getScreenSharingAccid required method

查询屏幕共享者的userUuid

- (NSString *_Nullable)getScreenSharingAccid

Discussion

查询屏幕共享者的userUuid

Declared In

NIMQChatMediaChannelManagerProtocol.h

– setSpeakerphoneOn: required method

打开或关闭扬声器

- (NSInteger)setSpeakerphoneOn:(BOOL)on

Discussion

打开或关闭扬声器

Declared In

NIMQChatMediaChannelManagerProtocol.h

– isSpeakerphoneOn required method

查询扬声器是否开启

- (BOOL)isSpeakerphoneOn

Discussion

查询扬声器是否开启

Declared In

NIMQChatMediaChannelManagerProtocol.h

– isAllAudioMuted required method

查询是否开启全员静音

- (BOOL)isAllAudioMuted

Discussion

查询是否开启全员静音

Declared In

NIMQChatMediaChannelManagerProtocol.h

– isAllVideoMuted required method

查询是否开启全员静音

- (BOOL)isAllVideoMuted

Discussion

查询是否开启全员静音

Declared In

NIMQChatMediaChannelManagerProtocol.h

– enableAudioVolumeIndicationWithEnable:interval: required method

  • 启用说话者音量提示。
  • 该方法允许 SDK 定期向 App 反馈本地发流用户和瞬时音量最高的远端用户(最多 3 位)的音量相关信息,
  • 即当前谁在说话以及说话者的音量。启用该方法后,只要RTC频道内有发流用户,无论是否有人说话, SDK 都会在加入RTC频道后根据预设的时间间隔触发 [NERoomListener.onRtcAudioVolumeIndication] 回调
  • @param enable 是否启用说话者音量提示。
  • @param interval 指定音量提示的时间间隔。单位为毫秒。必须设置为 100 毫秒的整数倍值,建议设置为 200 毫秒以上。
- (NSInteger)enableAudioVolumeIndicationWithEnable:(BOOL)enable interval:(NSInteger)interval

Discussion

  • 启用说话者音量提示。
  • 该方法允许 SDK 定期向 App 反馈本地发流用户和瞬时音量最高的远端用户(最多 3 位)的音量相关信息,
  • 即当前谁在说话以及说话者的音量。启用该方法后,只要RTC频道内有发流用户,无论是否有人说话, SDK 都会在加入RTC频道后根据预设的时间间隔触发 [NERoomListener.onRtcAudioVolumeIndication] 回调
  • @param enable 是否启用说话者音量提示。
  • @param interval 指定音量提示的时间间隔。单位为毫秒。必须设置为 100 毫秒的整数倍值,建议设置为 200 毫秒以上。

Declared In

NIMQChatMediaChannelManagerProtocol.h

– addMediaChannelListener: required method

添加多媒体频道事件监听

- (void)addMediaChannelListener:(id<NIMQChatMediaChannelDelegate>)delegate

Parameters

delegate

RTC频道监听

Discussion

添加多媒体频道事件监听

Declared In

NIMQChatMediaChannelManagerProtocol.h

– removeMediaChannelListener: required method

移除多媒体频道监听

- (void)removeMediaChannelListener:(id<NIMQChatMediaChannelDelegate>)delegate

Parameters

delegate

RTC频道监听

Discussion

移除多媒体频道监听

Declared In

NIMQChatMediaChannelManagerProtocol.h