JRTCSDK-iOS v2.0
API文档
JRTCEnum.h
1//
2// JRTCEnum.h
3// JRTCSDK
4//
5// Created by juphoon on 2021/5/17.
6// Copyright © 2021 juphoon. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
15
19typedef NS_ENUM(NSInteger, PictureSize) {
32};
33
42typedef NS_ENUM(NSInteger, ReasonCode) {
43
44#pragma mark - 通用
45
47 ReasonNone = 0x00000000,
49 ReasonOther = 0x00000001,
53 ReasonInvalidParam = 0x00000003,
54
55#pragma mark - client
56
58 ReasonCliSDKNotInit = 0x00000100,
62 ReasonCliTimeOut = 0x00000300,
64 ReasonCliNetWork = 0x00000400,
66 ReasonCliAppKey = 0x00000500,
68 ReasonCliAuth = 0x00000600,
70 ReasonCliNoUser = 0x00000700,
73
74#pragma mark - conf
76 ReasonConfNotLogin = 0x00010000,
78 ReasonConfTimeOut = 0x00020000,
80 ReasonConfNetWork = 0x00030000,
82 ReasonConfKicked = 0x00040000,
84 ReasonConfOffline = 0x00050000,
86 ReasonConfQuit = 0x00060000,
88 ReasonConfOver = 0x00070000,
90 ReasonConfFull = 0x00080000,
94 ReasonConfLocked = 0x000A0000,
115};
116
124typedef NS_ENUM(NSInteger, RoomState) {
133};
134
138typedef NS_ENUM(NSInteger, Resolution) {
147};
148
152typedef NS_ENUM(NSInteger, NetState) {
165};
166
170typedef NS_ENUM(NSInteger, VolumeStatus) {
176 VolumeStatusLow, // 40 - 50
182 VolumeStatusVeryHigh // 70 - 100
184
188typedef NS_ENUM(NSInteger, CDNState) {
195};
196
200typedef NS_ENUM(NSInteger, RecordState) {
211};
212
216typedef NS_ENUM(NSInteger, VideoMergeMode) {
224
228typedef NS_ENUM(NSInteger, IntelligentMergeMode) {
261};
262
266typedef NS_ENUM(NSInteger, ScsMergeMode) {
279};
280
284typedef NS_ENUM(NSInteger, VideoEncodeType) {
291};
292
294@interface JRTCEnum : NSObject
295
296+ (int)translateToMtcPictureSize:(PictureSize)pictureSize;
297
298+ (ReasonCode)translateFromMtcReason:(int)reason;
299
300+ (VolumeStatus)translateFromMtcVolumeStatus:(int)status;
301
302+ (RecordState)translateFromMtcRemoteRecordState:(int)state;
303
304+ (int)translateToMtcMediaEncodeType:(VideoEncodeType)type;
305
306@end
307
311typedef NS_ENUM(NSInteger, SystemPhoneState) {
321
326NS_ASSUME_NONNULL_END
ScsMergeMode
Definition: JRTCEnum.h:266
RoomState
Definition: JRTCEnum.h:124
RecordState
Definition: JRTCEnum.h:200
VideoEncodeType
Definition: JRTCEnum.h:284
PictureSize
Definition: JRTCEnum.h:19
VideoMergeMode
Definition: JRTCEnum.h:216
CDNState
Definition: JRTCEnum.h:188
Resolution
Definition: JRTCEnum.h:138
SystemPhoneState
Definition: JRTCEnum.h:311
VolumeStatus
Definition: JRTCEnum.h:170
IntelligentMergeMode
Definition: JRTCEnum.h:228
NetState
Definition: JRTCEnum.h:152
@ SrcMergeModeScreenShare
屏幕共享 MTC_CONF_COMPOSITE_SCREENSHARE_I
Definition: JRTCEnum.h:270
@ SrcMergeModeSpeaker
将屏幕共享和焦点视频内容合并 MTC_CONF_COMPOSITE_MODE_SPEAKER_I
Definition: JRTCEnum.h:276
@ SrcMergeModeInit
初始值
Definition: JRTCEnum.h:268
@ SrcMergeModePlateFormCover
将屏幕共享和所有视频内容合并, 所有视频覆盖在屏幕共享上 MTC_CONF_COMPOSITE_MODE_PLATFORM_COVER_I
Definition: JRTCEnum.h:274
@ SrcMergeModePlateForm
将屏幕共享和所有视频内容合并, 所有视频不覆盖屏幕共享 MTC_CONF_COMPOSITE_MODE_PLATFORM_I
Definition: JRTCEnum.h:272
@ SrcMergeModeWithoutScreenShare
忽略屏幕共享 MTC_CONF_COMPOSITE_MODE_WITHOUT_SCREENSHARE_I
Definition: JRTCEnum.h:278
@ StateIdle
空闲状态
Definition: JRTCEnum.h:126
@ StateLeaving
离开中
Definition: JRTCEnum.h:132
@ StateJoined
已加入
Definition: JRTCEnum.h:130
@ StateJoining
加入中
Definition: JRTCEnum.h:128
@ RecordStateReady
可以开启视频录制
Definition: JRTCEnum.h:206
@ RecordStateError
视频录制异常
Definition: JRTCEnum.h:210
@ RecordStateNone
无法进行视频录制
Definition: JRTCEnum.h:204
@ RecordStateOther
其他
Definition: JRTCEnum.h:202
@ RecordStateRunning
视频录制中
Definition: JRTCEnum.h:208
@ VideoEncodeTypeAV1
AV1编码类型
Definition: JRTCEnum.h:290
@ VideoEncodeTypeH265
H265编码类型
Definition: JRTCEnum.h:288
@ VideoEncodeTypeH264
H264编码类型
Definition: JRTCEnum.h:286
@ PictureSizeSmall
小尺寸
Definition: JRTCEnum.h:27
@ PictureSizeNone
不请求
Definition: JRTCEnum.h:23
@ PictureSizeLarge
大尺寸
Definition: JRTCEnum.h:29
@ PictureSizeInit
初始值
Definition: JRTCEnum.h:21
@ PictureSizeMax
最大尺寸
Definition: JRTCEnum.h:31
@ PictureSizeMin
最小尺寸
Definition: JRTCEnum.h:25
@ VideoMergeModeInit
初始值
Definition: JRTCEnum.h:218
@ VideoMergeModeCustomLayout
自定义布局
Definition: JRTCEnum.h:220
@ VideoMergeModeMergeIntelligentLayout
智能分屏
Definition: JRTCEnum.h:222
@ CDNStateNone
无法进行CDN推流
Definition: JRTCEnum.h:190
@ CDNStateReady
可以开启CDN推流
Definition: JRTCEnum.h:192
@ CDNStateRunning
CDN推流中
Definition: JRTCEnum.h:194
@ ResolutionInit
初始值
Definition: JRTCEnum.h:140
@ Resolution360
最大分辨率360P
Definition: JRTCEnum.h:142
@ Resolution720
最大分辨率720P
Definition: JRTCEnum.h:144
@ Resolution1080
最大分辨率1080P
Definition: JRTCEnum.h:146
@ SystemPhoneStateIdle
空闲
Definition: JRTCEnum.h:315
@ SystemPhoneStateOffhook
通话建立/系统电话呼出
Definition: JRTCEnum.h:319
@ SystemPhoneStateUnaviable
无效
Definition: JRTCEnum.h:313
@ SystemPhoneStateRing
来电
Definition: JRTCEnum.h:317
@ VolumeStatusNone
无声音
Definition: JRTCEnum.h:172
@ VolumeStatusVeryLow
很低
Definition: JRTCEnum.h:174
@ VolumeStatusVeryHigh
很高
Definition: JRTCEnum.h:182
@ VolumeStatusHigh
Definition: JRTCEnum.h:180
@ VolumeStatusMid
Definition: JRTCEnum.h:178
@ VolumeStatusLow
Definition: JRTCEnum.h:176
@ IntelligentMergeModeBigSmallx4
大小屏放大4倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX4_I
Definition: JRTCEnum.h:240
@ IntelligentMergeModeBigSmallx9
大小屏放大9倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX9_I
Definition: JRTCEnum.h:250
@ IntelligentMergeModeFreeLayout
自由布局 MTC_CONF_COMPOSITE_MODE_FREE_LAYOUT_I
Definition: JRTCEnum.h:232
@ IntelligentMergeModeBigSmallTop
大小屏放大到顶部 MTC_CONF_COMPOSITE_MODE_BIG_SMALL_TOP_I
Definition: JRTCEnum.h:254
@ IntelligentMergeModeBigSmallx5
大小屏放大5倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX5_I
Definition: JRTCEnum.h:242
@ IntelligentMergeModeDivideLayoutNoangle
绝对等分模式不带图像角度 MTC_CONF_COMPOSITE_MODE_DIVIDE_LAYOUT_NOANGLE_I
Definition: JRTCEnum.h:260
@ IntelligentMergeModeBigSmallx8
大小屏放大8倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX8_I
Definition: JRTCEnum.h:248
@ IntelligentMergeModeBigSmallBottom
大小屏放大到底部 MTC_CONF_COMPOSITE_MODE_BIG_SMALL_BOTTOM_I
Definition: JRTCEnum.h:256
@ IntelligentMergeModeBigSmallx7
大小屏放大7倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX7_I
Definition: JRTCEnum.h:246
@ IntelligentMergeModeBigSmallx3
大小屏放大3倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX3_I
Definition: JRTCEnum.h:238
@ IntelligentMergeModeBigSmallx6
大小屏放大6倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX6_I
Definition: JRTCEnum.h:244
@ IntelligentMergeModeInit
初始值
Definition: JRTCEnum.h:230
@ IntelligentMergeModeRectLayout
矩形布局 MTC_CONF_COMPOSITE_MODE_RECT_LAYOUT_I
Definition: JRTCEnum.h:234
@ IntelligentMergeModeBigSmallx2
大小屏放大2倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX2_I
Definition: JRTCEnum.h:236
@ IntelligentMergeModeBigSmallx10
大小屏放大10倍 MTC_CONF_COMPOSITE_MODE_BIG_SMALLX10_I
Definition: JRTCEnum.h:252
@ IntelligentMergeModeDivideLayout
绝对等分模式 MTC_CONF_COMPOSITE_MODE_DIVIDE_LAYOUT_I
Definition: JRTCEnum.h:258
@ NetStateDisconnected
无网络
Definition: JRTCEnum.h:154
@ NetStateNormal
一般
Definition: JRTCEnum.h:160
@ NetStateVeryGood
很好
Definition: JRTCEnum.h:164
@ NetStateVeryBad
很差
Definition: JRTCEnum.h:156
@ NetStateBad
Definition: JRTCEnum.h:158
@ NetStateGood
Definition: JRTCEnum.h:162
ReasonCode
Definition: JRTCEnum.h:42
@ ReasonConfInternalError
会议异常
Definition: JRTCEnum.h:112
@ ReasonConfLocked
会议被锁定
Definition: JRTCEnum.h:94
@ ReasonConfNumberNotFound
该会议号的会议不存在
Definition: JRTCEnum.h:100
@ ReasonConfAlreadyIn
会议已经存在(同时只能一个会议存在)
Definition: JRTCEnum.h:110
@ ReasonConfTimeOut
超时
Definition: JRTCEnum.h:78
@ ReasonConfNetWork
网络异常
Definition: JRTCEnum.h:80
@ ReasonGroupNoConfInGroup
群组没有会议
Definition: JRTCEnum.h:98
@ ReasonConfAppConcurrencyFul
服务器会议成员总数上限(移动端会议人数)
Definition: JRTCEnum.h:104
@ ReasonCliSDKNotInit
sdk 未初始化
Definition: JRTCEnum.h:58
@ ReasonConfOver
会议关闭
Definition: JRTCEnum.h:88
@ ReasonCliStateCannotLogin
当前状态无法再次登录
Definition: JRTCEnum.h:60
@ ReasonCallFunctionError
函数调用失败
Definition: JRTCEnum.h:51
@ ReasonConfNotLogin
未登录
Definition: JRTCEnum.h:76
@ ReasonConfFull
成员满
Definition: JRTCEnum.h:90
@ ReasonConfNumberExist
会议号已存在
Definition: JRTCEnum.h:102
@ ReasonCliAppKey
appkey 错误
Definition: JRTCEnum.h:66
@ ReasonInvalidParam
无效的参数
Definition: JRTCEnum.h:53
@ ReasonCliTimeOut
超时
Definition: JRTCEnum.h:62
@ ReasonConfAllConcurrencyFul
服务器会议成员总数上限(总会议人数)
Definition: JRTCEnum.h:106
@ ReasonConfAlreadyEnded
该会议已经结束(已经结束的预约会议不能重新通过join接口加入)
Definition: JRTCEnum.h:108
@ ReasonConfKicked
被踢
Definition: JRTCEnum.h:82
@ ReasonCliNetWork
网络异常
Definition: JRTCEnum.h:64
@ ReasonGroupConfExist
群组已有会议
Definition: JRTCEnum.h:96
@ ReasonCliAuth
账号密码错误
Definition: JRTCEnum.h:68
@ ReasonConfInvalidPassword
密码无效
Definition: JRTCEnum.h:92
@ ReasonConfOffline
掉线
Definition: JRTCEnum.h:84
@ ReasonCliServerLogout
被强制登出
Definition: JRTCEnum.h:72
@ ReasonCliNoUser
无该用户
Definition: JRTCEnum.h:70
@ ReasonNone
正常
Definition: JRTCEnum.h:47
@ ReasonOther
其他错误
Definition: JRTCEnum.h:49
@ ReasonConfJoinLicenceLimit
会场人员上限,licence限制
Definition: JRTCEnum.h:114
@ ReasonConfQuit
主动离开
Definition: JRTCEnum.h:86
枚举转化类
Definition: JRTCEnum.h:295