JRTCSDK-iOS v2401.0
视频客服 API 文档
载入中...
搜索中...
未找到
JRTCRoom.h
1//
2// JRTCRoom.h
3// JRTCSDK
4//
5// Created by juphoon on 2017/8/11.
6// Copyright © 2017年 juphoon. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "JRTCRoomCallback.h"
11#import "JRTCRoomParticipant.h"
12#import "JRTCRoomConstants.h"
13#import "JRTCRoomJoinParam.h"
14#import "JRTCRoomQueryInfo.h"
15#import "JRTCSipInviteParam.h"
16#import "JRTCEnum.h"
17#import "JRTCRecordRemoteParam.h"
18#import "JRTCRecordLocalParam.h"
19#import "JRTCModuleBase.h"
20#import "JRTCVideoSize.h"
21
30@interface JRTCRoomPropChangeParam : NSObject
31
37@property (nonatomic, assign) bool uploadLocalAudio;
38
44@property (nonatomic, assign) bool uploadLocalVideo;
45
51@property (nonatomic, assign) bool audioOutput;
52
58@property (nonatomic, assign) bool cdnState;
59
65@property (nonatomic, assign) bool remoteRecordState;
66
72@property (nonatomic, assign) bool screenShare;
73
79@property (nonatomic, assign) bool unSubScreenShare;
80
84- (NSDictionary *_Nullable)toDictionary;
85
86@end
87
92
93
97@property (nonatomic, readonly, copy, nullable) NSString *roomId;
98
102@property (nonatomic, readonly, assign) unsigned int roomHandle;
103
107@property (nonatomic, readonly, copy, nullable) NSString *password;
108
118@property (nonatomic, readonly, assign) RoomState state;
119
123@property (nonatomic, readonly, strong, nullable) NSArray<JRTCRoomParticipant *> *participants;
124
131@property (nonatomic, readonly, assign) bool uploadLocalAudio;
132
139@property (nonatomic, readonly, assign) bool uploadLocalVideo;
140
149@property (nonatomic, readonly, assign) bool audioOutput;
150
156@property (nonatomic, readonly, copy, nullable) NSString *shareStreamId;
157
163@property (nonatomic, readonly, copy, nullable) NSString *shareUserId;
164
171@property (nonatomic, readonly, assign) bool localRecording;
172
176@property (nonatomic, readonly, copy, nullable) NSString *title;
177
184@property (nonatomic, readonly, assign) RecordState remoteRecordState;
185
192@property (nonatomic, readonly, assign) CDNState cdnState;
199@property (nonatomic, assign) bool canBindCamera;
200
207@property (nonatomic, assign) bool notifyVolumeChange;
208
224+ (JRTCRoom* __nullable)create:(JRTCClient* __nonnull)client mediaDevice:(JRTCMediaDevice* __nonnull)mediaDevice callback:(id<JRTCRoomCallback> __nonnull)callback;
225
233+ (void)destroy;
234
240- (NSArray<JRTCVideoSize *> *_Nullable)getSupportVideoSizes;
241
250- (int)query:(NSString* __nonnull)roomId;
251
263- (bool)join:(NSString* __nonnull)roomId joinParam:(JRTCRoomJoinParam* __nullable)joinParam;
264
271- (bool)leave;
272
281- (bool)kickUser:(NSString* __nonnull)userId;
282
289-(void)setUseExternalScreenCaptureControl:(bool)useExternalControl;
290
309- (bool)enableUploadAudioStream:(bool)enable;
310
329- (bool)enableUploadVideoStream:(bool)enable;
330
343- (bool)enableAudioOutput:(bool)enable;
344
354- (bool)requestVideo:(JRTCRoomParticipant* __nonnull)participant videoSize:(JRTCVideoSize *__nonnull)videoSize;
355
364- (bool)unRequestVideo:(JRTCRoomParticipant* __nonnull)participant;
365
374- (bool)requestScreenVideo:(JRTCVideoSize *__nonnull)videoSize;
375
383- (bool)unRequestScreenVideo;
384
385
386#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
387
405- (bool)enableScreenShare:(bool)enable appGroupId:(NSString *__nullable)appGroupId preferredExtension:(NSString *__nullable)preferredExtension;
406
417- (bool)suspendScreenShare:(bool)suspend tip:(NSString *_Nonnull)tip;
418
425- (bool)isSuspendScreenShare;
426
433- (bool)setSubScreenShare:(bool)enable;
434
441- (bool)isSubScreenShare;
442
443#endif
444
456- (bool)enableCdn:(bool)enable keyInterval:(int)keyInterval;
457
470- (bool)enableLocalRecord:(bool)enable recordParam:(JRTCRecordLocalParam* __nullable)recordParam;
471
480- (bool)updateLocalRecordLayout:(NSArray<JRTCRecordLocalLayout*>* __nonnull)layoutList;
481
494- (bool)enableRemoteRecord:(bool)enable recordParam:(JRTCRecordRemoteParam* __nullable)recordParam;
495
504- (bool)updateRemoteRecordLayout:(NSArray<JRTCRecordRemoteLayout *> * __nonnull)layoutList;
505
514- (bool)updateRemoteRecordWatermark:(NSDictionary * __nonnull)watermarkTextDic;
515
527- (bool)enableRemoteAdvancedRecord;
528
543- (bool)enableAudioInputFromFile:(bool)enable filePath:(NSString *_Nullable)filePath loop:(bool)loop DEPRECATED_MSG_ATTRIBUTE("该方法即将废弃,请用JRTCMediaDevice#enableAudioInputFromFile:filePath:loop:代替");
544
555- (bool)suspendAudioInputFromFile:(bool)suspend DEPRECATED_MSG_ATTRIBUTE("该方法即将废弃,请用JRTCMediaDevice#suspendAudioInputFromFile:代替");
556
565- (JRTCRoomParticipant* __nullable)getParticipant:(NSString* __nonnull)userId;
566
749- (NSString* __nullable)getStatistics;
750
775- (NSString * __nullable)getJsonStats;
776
786- (bool)setCustomProperty:(NSString* __nonnull)value forKey:(NSString* __nonnull)key;
787
796- (NSString* __nullable)getCustomProperty:(NSString* __nonnull)key;
797
809- (bool)sendMessage:(NSString * __nonnull)type content:(NSString * __nonnull)content toUserId:(NSString * __nullable)toUserId;
810
819- (int)inviteSipUser:(JRTCSipInviteParam *__nonnull)sipParam;
820
832- (bool)setRatio:(float)ratio;
833
845- (bool)sendAudioEmptyPack:(bool)b;
846
858- (bool)sendVideoEmptyPack:(bool)b;
859
869- (bool)setVideoDot:(NSString *__nonnull)timespan info:(NSString *__nonnull)info;
870
880- (bool)enableMicAgc:(bool)enable;
881
882@end
883
RoomState
Definition: JRTCEnum.h:94
RecordState
Definition: JRTCEnum.h:170
CDNState
Definition: JRTCEnum.h:158
登录登出管理
Definition: JRTCClient.h:24
音视频设备管理
Definition: JRTCMediaDevice.h:149
业务基础类
Definition: JRTCModuleBase.h:16
成员布局配置类
Definition: JRTCRecordLocalParam.h:18
本地录制参数
Definition: JRTCRecordLocalParam.h:43
成员布局配置类
Definition: JRTCRecordRemoteParam.h:18
远程录制参数
Definition: JRTCRecordRemoteParam.h:41
Definition: JRTCRoom.h:92
Definition: JRTCRoomJoinParam.h:21
Definition: JRTCRoomParticipant.h:114
Definition: JRTCRoom.h:31
bool uploadLocalVideo
Definition: JRTCRoom.h:44
bool uploadLocalAudio
Definition: JRTCRoom.h:37
bool cdnState
Definition: JRTCRoom.h:58
bool unSubScreenShare
Definition: JRTCRoom.h:79
bool audioOutput
Definition: JRTCRoom.h:51
bool screenShare
Definition: JRTCRoom.h:72
bool remoteRecordState
Definition: JRTCRoom.h:65
NSDictionary *_Nullable toDictionary()
sip邀请参数
Definition: JRTCSipInviteParam.h:18
视频尺寸
Definition: JRTCVideoSize.h:18