JRTCSDK-iOS v2203.0
视频客服 API 文档
载入中...
搜索中...
未找到
JRTCGuest.h
1//
2// JRTCGuest.h
3// JRTCSDK
4//
5// Created by juphoon on 2019/3/28.
6// Copyright © 2019 juphoon. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "JRTCGuestCallback.h"
11#import "JRTCRoom.h"
12#import "JRTCCallCenterCallParam.h"
13#import "JRTCCallCenter.h"
14#import "JRTCEnum.h"
15
18
19NS_ASSUME_NONNULL_BEGIN
20
23
27@property (nonatomic, assign, readonly) CallState callState;
28
36@property (nonatomic, assign, readonly) bool isMainGuest;
37
44@property (nonatomic, strong, readonly) JRTCRoomParticipant *mainAgentParticipant;
45
54@property (nonatomic, strong, readonly) NSArray<JRTCRoomParticipant *> *agentParticipants;
55
61@property (nonatomic, strong, readonly) JRTCRoomParticipant *selfParticipant;
62
66@property (nonatomic, strong, readonly) NSArray<JRTCRoomParticipant *> *participants;
67
255@property (nonatomic, copy, readonly) NSString *statistics;
256
279@property (nonatomic, readonly, copy) NSString *jsonStats;
280
286@property (nonatomic, readonly, copy) NSString *shareStreamId;
287
293@property (nonatomic, readonly, copy) NSString *shareUserId;
294
300@property (nonatomic, strong) JRTCVideoSize *requestSize;
301
305@property (nonatomic, readonly, copy) NSString *serialNumber;
306
320+ (JRTCGuest *)create:(JRTCClient *)client mediaDevice:(JRTCMediaDevice *)mediaDevice callback:(id<JRTCGuestCallback>)callback;
321
329+ (void)destroy;
330
336- (NSArray<JRTCVideoSize *> *_Nullable)getSupportVideoSizes;
337
347
356- (bool)getHoldState;
357
366- (bool)isOnewayVideo;
367
375- (bool)queryAllGroups;
376
386- (bool)call:(NSString *)number callParams:(JRTCCallCenterCallParam *)callParam;
387
397- (bool)oneToOneCall:(NSString *)number callParams:(JRTCCallCenterCallParam *)callParam;
398
407- (bool)answer;
408
418- (bool)term;
419
432- (bool)requestUrgent;
433
443- (void)turnCallType:(CallType)callType;
444
456- (bool)sendMessage:(NSString *)contentType content:(NSString *)content toUserId:(nullable NSString *)toUserId;
457
468- (bool)sendNotifyMessage:(JRTCNotifyMessage *)notifyMessage toUserId:(NSString *__nullable)userId;
469
483- (bool)enableUploadAudioStream:(bool)enable;
484
498- (bool)enableUploadVideoStream:(bool)enable;
499
511- (bool)sendAudioEmptyPack:(bool)empty;
512
524- (bool)sendVideoEmptyPack:(bool)empty;
525
526#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
527
543- (bool)enableScreenShare:(bool)enable appGroupId:(NSString *__nullable)appGroupId preferredExtension:(NSString *__nullable)preferredExtension;
544
555- (bool)suspendScreenShare:(bool)suspend tip:(NSString *_Nonnull)tip;
556
564#endif
565
577- (bool)setRatio:(float)ratio;
578
588- (bool)requestVideo:(JRTCRoomParticipant* __nonnull)participant videoSize:(JRTCVideoSize* __nonnull)videoSize;
589
597- (bool)unRequestVideo:(JRTCRoomParticipant* __nonnull)participant;
598
607- (bool)requestScreenVideo:(JRTCVideoSize* __nonnull)videoSize;
608
616
629- (bool)enableLocalRecord:(bool)enable recordParam:(JRTCRecordLocalParam *)recordParam;
630
639- (bool)updateLocalRecordLayout:(NSArray<JRTCRecordLocalLayout*> *)layoutList;
640
647- (bool)isLocalRecording;
648
662- (bool)enableRemoteRecord:(bool)enable recordParam:(JRTCRecordRemoteParam*)recordParam;
663
671
680- (bool)setVideoDot:(NSString *__nonnull)timespan info:(NSString *__nonnull)info;
681
682
701- (bool)responseSignResult:(bool)result userId:(NSString *)userId extraInfo:(nullable NSString *)extraInfo;
702
703@end
704
705NS_ASSUME_NONNULL_END
706
RecordState
Definition: JRTCEnum.h:170
CallType
Definition: JRTCCallCenter.h:59
CallState
Definition: JRTCCallCenter.h:69
呼叫参数
Definition: JRTCCallCenterCallParam.h:22
登录登出管理
Definition: JRTCClient.h:22
访客管理
Definition: JRTCGuest.h:23
bool getHoldState()
JRTCVideoSize * requestSize
Definition: JRTCGuest.h:300
RecordState getRemoteRecordState()
NSString * statistics
Definition: JRTCGuest.h:255
NSString * shareStreamId
Definition: JRTCGuest.h:286
bool queryAllGroups()
bool isOnewayVideo()
void destroy()
NSString * serialNumber
Definition: JRTCGuest.h:305
bool isMainGuest
Definition: JRTCGuest.h:36
NSArray< JRTCVideoSize * > *_Nullable getSupportVideoSizes()
JRTCRoomParticipant * mainAgentParticipant
Definition: JRTCGuest.h:44
bool requestUrgent()
bool isSuspendScreenShare()
bool unRequestScreenVideo()
NSArray< JRTCRoomParticipant * > * agentParticipants
Definition: JRTCGuest.h:54
NSString * shareUserId
Definition: JRTCGuest.h:293
JRTCRoomParticipant * selfParticipant
Definition: JRTCGuest.h:61
CallState callState
Definition: JRTCGuest.h:27
CallType getCallType()
NSArray< JRTCRoomParticipant * > * participants
Definition: JRTCGuest.h:66
NSString * jsonStats
Definition: JRTCGuest.h:279
bool isLocalRecording()
bool answer()
音视频设备管理
Definition: JRTCMediaDevice.h:133
业务基础类
Definition: JRTCModuleBase.h:16
事件通知
Definition: JRTCNotifyMessage.h:19
成员布局配置类
Definition: JRTCRecordLocalParam.h:18
本地录制参数
Definition: JRTCRecordLocalParam.h:43
远程录制参数
Definition: JRTCRecordRemoteParam.h:41
Definition: JRTCRoomParticipant.h:114
视频尺寸
Definition: JRTCVideoSize.h:18