NERtc iOS SDK  V4.4.301
NERtcEngineEnum.h
浏览该文件的文档.
1 /*
2  * Copyright (c) 2021 NetEase, Inc. All rights reserved.
3  */
4 
5 #import <Foundation/Foundation.h>
6 
7 #if TARGET_OS_IPHONE
8 #import <UIKit/UIKit.h>
9 typedef UIView VIEW_CLASS;
10 typedef UIColor COLOR_CLASS;
11 #elif TARGET_OS_MAC
12 #import <AppKit/AppKit.h>
13 typedef NSView VIEW_CLASS;
14 typedef NSColor COLOR_CLASS;
15 #endif
16 
17 
18 NS_ASSUME_NONNULL_BEGIN
19 
20 #pragma mark -- ENGINE ENUM
21 
22 
26 typedef NS_ENUM(NSUInteger, NERtcConnectionStateType) {
39 };
40 
41 
45 typedef NS_ENUM(NSInteger, NERtcSessionLeaveReason) {
56 };
57 
61 typedef NS_ENUM(NSInteger, NERtcClientRole) {
66 };
67 
71 typedef NS_ENUM(NSInteger, NERtcReasonConnectionChangedType) {
105 };
106 
107 #pragma mark -- VIDEO ENUM
108 
109 
113 typedef NS_ENUM(NSUInteger, NERtcVideoProfileType) {
115  kNERtcVideoProfileLowest = 0, // 160x90/120
117  kNERtcVideoProfileLow = 1, // 320x180/240
119  kNERtcVideoProfileStandard = 2, // 640x360/480
121  kNERtcVideoProfileHD720P = 3, // 1280x720
123  kNERtcVideoProfileHD1080P = 4, // 1920x1080
129 };
130 
135 typedef NS_ENUM(NSUInteger, NERtcVideoFrameRate) {
150 };
151 
162 typedef NS_ENUM(NSUInteger, NERtcDegradationPreference) {
175 };
176 
180 typedef NS_ENUM(NSUInteger, NERtcSubStreamContentPrefer) {
195 };
196 
200 typedef NS_ENUM(NSUInteger, NERtcRemoteVideoStreamType) {
205 };
206 
210 typedef NS_ENUM(NSUInteger, NERtcVideoPubMode) {
219 };
220 
224 typedef NS_ENUM(NSUInteger, NERtcVideoRenderScaleMode) {
231 };
232 
236 typedef NS_ENUM(NSUInteger, NERtcVideoRotationMode) {
243 };
244 
245 
249 typedef NS_ENUM(NSUInteger, NERtcVideoMirrorMode) {
256 };
257 
261 typedef NS_ENUM(NSUInteger, NERtcVideoOutputOrientationMode) {
279 };
280 
284 typedef NS_ENUM(NSUInteger, NERtcVideoCropMode) {
293 };
294 
298 typedef NS_ENUM(NSUInteger, NERtcRenderType) {
305 };
306 
310 typedef NS_ENUM(NSUInteger, NERtcVideoRotationType) {
319 };
320 
324 typedef NS_ENUM(NSUInteger, NERtcVideoFormatType) {
331 };
332 
336 typedef NS_ENUM(NSUInteger, NERtcStreamChannelType) {
341 };
342 
343 #pragma mark -- AUDIO ENUM
344 
348 typedef NS_ENUM(NSInteger, NERtcAudioOutputRouting) {
359 };
360 
365 typedef NS_ENUM(NSInteger, NERtcAudioProfileType) {
380 };
381 
391 typedef NS_ENUM(NSInteger, NERtcAudioScenarioType) {
400 };
401 
405 typedef NS_ENUM(NSInteger, NERtcChannelProfileType) {
410 };
411 
412 
417 typedef NS_ENUM(NSInteger, NERtcAudioSessionOperationRestriction) {
424 };
425 
426 #pragma mark - media
427 
428 typedef NS_ENUM(NSInteger, NERtcMediaPriorityType){
433 };
434 
435 typedef NS_ENUM(NSInteger, NERtcStreamFallbackOptions){
451 };
452 
456 typedef NS_ENUM(NSInteger, NERtcAudioRecordingQuality) {
463 };
464 
468 typedef NS_ENUM(NSInteger, NERtcAudioRecordingCode) {
483 };
484 
485 #pragma mark --Voice changer/beautifier
486 
490 typedef NS_ENUM(NSInteger, NERtcAudioEqualizationBandFrequency ) {
511 };
512 
516 typedef NS_ENUM(NSInteger, NERtcVoiceChangerType) {
535 };
536 
540 typedef NS_ENUM(NSInteger, NERtcVoiceBeautifierType) {
565 };
566 
567 #pragma mark -- RECORD ENUM
568 
572 typedef NS_ENUM(NSUInteger, NERtcRecordType) {
579 };
580 
581 #pragma mark - AUDIO MIXING ENUM
582 
586 typedef NS_ENUM(NSUInteger, NERtcAudioMixingState) {
591 };
592 
596 typedef NS_ENUM(NSUInteger, NERtcAudioMixingErrorCode) {
629 };
630 
631 
632 #pragma mark -- Network Status ENUM
636 typedef NS_ENUM(NSInteger, NERtcNetworkConnectionType) {
653 };
654 
655 
656 #pragma mark -- Live Stream
660 typedef NS_ENUM(NSInteger, NERtcLiveStreamAudioSampleRate) {
667 };
668 
672 typedef NS_ENUM(NSInteger, NERtcLiveStreamAudioCodecProfile) {
677 };
678 
682 typedef NS_ENUM(NSInteger, NERtcLiveStreamMode) {
691 };
692 
696 typedef NS_ENUM(NSInteger, NERtcLiveStreamVideoScaleMode) {
701 };
702 
706 typedef NS_ENUM(NSInteger, NERtcLiveStreamStateCode) {
713 };
714 
715 #pragma mark -- Audio Frame Observer
721 typedef NS_ENUM(NSInteger, NERtcAudioType) {
724 };
725 
729 typedef NS_ENUM(NSInteger, NERtcAudioFrameOpMode) {
734 };
735 
736 #pragma mark -- Device type
740 typedef NS_ENUM(int, NERtcAudioDeviceType) {
747 };
748 
752 typedef NS_ENUM(int, NERtcVideoDeviceType) {
757 };
758 
759 #pragma mark -- Device state
763 typedef NS_ENUM(int, NERtcAudioDeviceState) {
772 };
773 
777 typedef NS_ENUM(int, NERtcVideoDeviceState) {
786 };
787 
788 
792 typedef NS_ENUM(int, NERtcNetworkQuality) {
807 };
808 
812 typedef NS_ENUM(NSUInteger, NERtcChannelMediaRelayState) {
821 };
822 
826 typedef NS_ENUM(NSUInteger, NERtcChannelMediaRelayEvent) {
846 };
847 
851 typedef NS_ENUM(NSUInteger, NERtcEncryptionMode) {
856 };
857 
866 typedef NS_ENUM(NSUInteger, NERtcTransportType) {
885 };
886 
887 #pragma mark -- Log
891 typedef NS_ENUM(NSInteger, NERtcLogLevel) {
908 };
909 
910 NS_ASSUME_NONNULL_END
NERtcAudioEqualizationBandFrequency
The preset value of the spectrum subband index.
Definition: NERtcEngineEnum.h:490
@ NERtcAudioEqualizationBand16K
9: 16 kHz.
Definition: NERtcEngineEnum.h:510
@ NERtcAudioEqualizationBand500
4: 500 Hz.
Definition: NERtcEngineEnum.h:500
@ NERtcAudioEqualizationBand1K
5: 1 kHz.
Definition: NERtcEngineEnum.h:502
@ NERtcAudioEqualizationBand2K
6: 2 kHz.
Definition: NERtcEngineEnum.h:504
@ NERtcAudioEqualizationBand125
2: 125 Hz.
Definition: NERtcEngineEnum.h:496
@ NERtcAudioEqualizationBand8K
8: 8 kHz.
Definition: NERtcEngineEnum.h:508
@ NERtcAudioEqualizationBand250
3: 250 Hz.
Definition: NERtcEngineEnum.h:498
@ NERtcAudioEqualizationBand31
0: 31 Hz.
Definition: NERtcEngineEnum.h:492
@ NERtcAudioEqualizationBand62
1: 62 Hz.
Definition: NERtcEngineEnum.h:494
@ NERtcAudioEqualizationBand4K
7: 4 kHz.
Definition: NERtcEngineEnum.h:506
NERtcAudioMixingErrorCode
Mixing audio error code
Definition: NERtcEngineEnum.h:596
@ kNERtcAudioMixingErrorNCodec
No decoder
Definition: NERtcEngineEnum.h:616
@ kNERtcAudioMixingErrorFatal
A fatal error occurs.
Definition: NERtcEngineEnum.h:600
@ kNERtcAudioMixingErrorOpen
Fails to open stream/file
Definition: NERtcEngineEnum.h:610
@ kNERtcAudioMixingErrorCodecOpen
Decoder fails to open/timed out
Definition: NERtcEngineEnum.h:620
@ kNERtcAudioMixingErrorInterrupt
Operation interruption code
Definition: NERtcEngineEnum.h:606
@ kNERtcAudioMixingErrorIo
Network I/O error
Definition: NERtcEngineEnum.h:628
@ kNERtcAudioMixingErrorOK
Normal mixing audio
Definition: NERtcEngineEnum.h:598
@ kNERtcAudioMixingErrorOpenTimeout
Opening stream/file timeout
Definition: NERtcEngineEnum.h:624
@ kNERtcAudioMixingErrorHttpNotFound
404 file not found, only for http/https
Definition: NERtcEngineEnum.h:608
@ kNERtcAudioMixingErrorNMem
No memory
Definition: NERtcEngineEnum.h:618
@ kNERtcAudioMixingErrorNInfo
Fails to retrieve decoding information/timeout
Definition: NERtcEngineEnum.h:612
@ kNERtcAudioMixingErrorCanNotOpen
The mixing audio file cannot be opened normally
Definition: NERtcEngineEnum.h:602
@ kNERtcAudioMixingErrorInvalidInfo
Invalid audio parameters (channels and sample rate)
Definition: NERtcEngineEnum.h:622
@ kNERtcAudioMixingErrorNStream
No audio stream
Definition: NERtcEngineEnum.h:614
@ kNERtcAudioMixingErrorDecode
Audio decoding error
Definition: NERtcEngineEnum.h:604
@ kNERtcAudioMixingErrorIoTimeout
Network I/O timeout
Definition: NERtcEngineEnum.h:626
NERtcLiveStreamMode
Streaming mode in live streaming
Definition: NERtcEngineEnum.h:682
@ kNERtcLsModeVideo
(Default) stream audio and video.
Definition: NERtcEngineEnum.h:686
@ kNERtcLsModeAudio
Stream audio.
Definition: NERtcEngineEnum.h:690
NERtcAudioDeviceState
Audio device state
Definition: NERtcEngineEnum.h:763
@ kNERtcAudioDeviceStateStarted
The audio device is started.
Definition: NERtcEngineEnum.h:767
@ kNERtcAudioDeviceStateInitialized
The audio device is initialized.
Definition: NERtcEngineEnum.h:765
@ kNERtcAudioDeviceStateStoped
The audio device is stopped.
Definition: NERtcEngineEnum.h:769
@ kNERtcAudioDeviceStateUnInitialized
The audio device is uninitialized.
Definition: NERtcEngineEnum.h:771
NERtcVideoCropMode
Video crop mode
Definition: NERtcEngineEnum.h:284
@ kNERtcVideoCropMode16_9
16:9
Definition: NERtcEngineEnum.h:288
@ kNERtcVideoCropMode1_1
1:1
Definition: NERtcEngineEnum.h:292
@ kNERtcVideoCropMode4_3
4:3
Definition: NERtcEngineEnum.h:290
@ kNERtcVideoCropDefault
Do not crop.
Definition: NERtcEngineEnum.h:286
NERtcChannelMediaRelayEvent
Events related to the media stream relay.
Definition: NERtcEngineEnum.h:826
@ NERtcChannelMediaRelayEventConnected
The SDK has connected to the server successfully.
Definition: NERtcEngineEnum.h:832
@ NERtcChannelMediaRelayEventFailure
Fails to relay media streams.
Definition: NERtcEngineEnum.h:845
@ NERtcChannelMediaRelayEventVideoSentToDestChannelSuccess
The video stream is relayed to the destination room.
Definition: NERtcEngineEnum.h:834
@ NERtcChannelMediaRelayEventDisconnect
Stops media stream relay across rooms.
Definition: NERtcEngineEnum.h:828
@ NERtcChannelMediaRelayEventOtherStreamSentToDestChannelSuccess
Other media streams such as screen sharing are relayed to the destination room.
Definition: NERtcEngineEnum.h:838
@ NERtcChannelMediaRelayEventConnecting
The SDK is connecting to the server and is trying to relay the media stream.
Definition: NERtcEngineEnum.h:830
@ NERtcChannelMediaRelayEventAudioSentToDestChannelSuccess
The audio stream is relayed to the destination room.
Definition: NERtcEngineEnum.h:836
NERtcAudioProfileType
Summary of audio quality capabilities Audio profile: sample rate, bitrate, encoding mode,...
Definition: NERtcEngineEnum.h:365
@ kNERtcAudioProfileMiddleQualityStereo
Medium sound quality mode (stereo).
Definition: NERtcEngineEnum.h:375
@ kNERtcAudioProfileHighQuality
High sound quality mode.
Definition: NERtcEngineEnum.h:377
@ kNERtcAudioProfileStandardExtend
Standard extended mode.
Definition: NERtcEngineEnum.h:371
@ kNERtcAudioProfileHighQualityStereo
High sound quality mode (stereo).
Definition: NERtcEngineEnum.h:379
@ kNERtcAudioProfileStandard
Standard sound quality mode.
Definition: NERtcEngineEnum.h:369
@ kNERtcAudioProfileMiddleQuality
Medium sound quality mode.
Definition: NERtcEngineEnum.h:373
@ kNERtcAudioProfileDefault
Default setting.
Definition: NERtcEngineEnum.h:367
NERtcLogLevel
Log level
Definition: NERtcEngineEnum.h:891
@ kNERtcLogLevelDebug
Debug level log information.
Definition: NERtcEngineEnum.h:903
@ kNERtcLogLevelFatal
Fatal level log information.
Definition: NERtcEngineEnum.h:893
@ kNERtcLogLevelOff
Turn off log printing.
Definition: NERtcEngineEnum.h:907
@ kNERtcLogLevelVerbose
Verbose level log information.
Definition: NERtcEngineEnum.h:905
@ kNERtcLogLevelInfo
Info level log information.
Definition: NERtcEngineEnum.h:899
@ kNERtcLogLevelDetailInfo
Detail Info level log information.
Definition: NERtcEngineEnum.h:901
@ kNERtcLogLevelWarning
Warning level log information.
Definition: NERtcEngineEnum.h:897
@ kNERtcLogLevelError
Error level log information.
Definition: NERtcEngineEnum.h:895
NERtcChannelMediaRelayState
/ State during media stream relay.
Definition: NERtcEngineEnum.h:812
@ NERtcChannelMediaRelayStateFailure
An exception occurs.
Definition: NERtcEngineEnum.h:820
@ NERtcChannelMediaRelayStateConnecting
The SDK tries to relay media streams across rooms.
Definition: NERtcEngineEnum.h:816
@ NERtcChannelMediaRelayStateRunning
The host in the source room successfully joined the destination room.
Definition: NERtcEngineEnum.h:818
@ NERtcChannelMediaRelayStateIdle
Initial state.
Definition: NERtcEngineEnum.h:814
NERtcVideoFormatType
Video format type
Definition: NERtcEngineEnum.h:324
@ kNERtcVideoFormatBGRA
BGRA video format.
Definition: NERtcEngineEnum.h:330
@ kNERtcVideoFormatI420
I420 video format.
Definition: NERtcEngineEnum.h:326
@ kNERtcVideoFormatNV12
NV12 video format.
Definition: NERtcEngineEnum.h:328
NERtcRenderType
Video rendering type.
Definition: NERtcEngineEnum.h:298
@ kNERtcRenderDefault
The default video rendering type.
Definition: NERtcEngineEnum.h:300
@ kNERtcRenderMetal
Metal rendering.
Definition: NERtcEngineEnum.h:304
@ kNERtcRenderOpenGL
OpenGLES rendering.
Definition: NERtcEngineEnum.h:302
NERtcAudioDeviceType
Audio device type
Definition: NERtcEngineEnum.h:740
@ kNERtcAudioDeviceTypeRecord
Audio capture device
Definition: NERtcEngineEnum.h:744
@ kNERtcAudioDeviceTypePlayout
Audio playback device
Definition: NERtcEngineEnum.h:746
@ kNERtcAudioDeviceTypeUnknown
Unknown device
Definition: NERtcEngineEnum.h:742
NERtcLiveStreamVideoScaleMode
Scale mode in live streaming
Definition: NERtcEngineEnum.h:696
@ kNERtcLsModeVideoScaleFit
Adaptive to the video, the video size is scaled proportionally.
Definition: NERtcEngineEnum.h:698
@ kNERtcLsModeVideoScaleCropFill
(default) Adaptive to the area, the video size is scaled proportionally.
Definition: NERtcEngineEnum.h:700
NERtcVoiceChangerType
The preset value of the voice changer
Definition: NERtcEngineEnum.h:516
@ kNERtcVoiceChangerRobot
Robot.
Definition: NERtcEngineEnum.h:520
@ kNERtcVoiceChangerHorror
Horror.
Definition: NERtcEngineEnum.h:524
@ kNERtcVoiceChangerManToWoman
Male to female.
Definition: NERtcEngineEnum.h:528
@ kNERtcVoiceChangerWomanToMan
Female to male.
Definition: NERtcEngineEnum.h:530
@ kNERtcVoiceChangerManToLoli
Male to loli.
Definition: NERtcEngineEnum.h:532
@ kNERtcVoiceChangerGaint
Giant.
Definition: NERtcEngineEnum.h:522
@ kNERtcVoiceChangerOff
By default, the voice changer effect is disabled.
Definition: NERtcEngineEnum.h:518
@ kNERtcVoiceChangerMature
Mature.
Definition: NERtcEngineEnum.h:526
@ kNERtcVoiceChangerWomanToLoli
Female to loli.
Definition: NERtcEngineEnum.h:534
NERtcSubStreamContentPrefer
Encoding strategy preference for screen sharing
Definition: NERtcEngineEnum.h:180
@ kNERtcSubStreamContentPreferMotion
(Default) The content type is animation.
Definition: NERtcEngineEnum.h:187
@ kNERtcSubStreamContentPreferDetails
The content type is details.
Definition: NERtcEngineEnum.h:194
NERtcLiveStreamAudioCodecProfile
Live streaming audio codec profile
Definition: NERtcEngineEnum.h:672
@ kNERtcLiveStreamAudioCodecProfileHEAAC
NERtcLiveStreamAudioCodecProfileHEAAC: HE-AAC, high-efficiency audio codec
Definition: NERtcEngineEnum.h:676
@ kNERtcLiveStreamAudioCodecProfileLCAAC
NERtcLiveStreamAudioCodecProfileLCAAC: LC-AAC, basic audio codec
Definition: NERtcEngineEnum.h:674
NERtcAudioOutputRouting
Audio route
Definition: NERtcEngineEnum.h:348
@ kNERtcAudioOutputRoutingLoudspeaker
Speakerphone
Definition: NERtcEngineEnum.h:356
@ kNERtcAudioOutputRoutingHeadset
Headset
Definition: NERtcEngineEnum.h:352
@ kNERtcAudioOutputRoutingEarpiece
Earpiece
Definition: NERtcEngineEnum.h:354
@ kNERtcAudioOutputRoutingDefault
System default
Definition: NERtcEngineEnum.h:350
@ kNERtcAudioOutputRoutingBluetooth
Bluetooth device
Definition: NERtcEngineEnum.h:358
NERtcAudioMixingState
The status of the audio mixing task
Definition: NERtcEngineEnum.h:586
@ kNERtcAudioMixingStateFinished
The music file ends normally.
Definition: NERtcEngineEnum.h:588
@ kNERtcAudioMixingStateFailed
The playback of the music file fails.
Definition: NERtcEngineEnum.h:590
NERtcVideoPubMode
Video publishing mode
Definition: NERtcEngineEnum.h:210
@ kNERtcVideoSendOnPubWithLow
Initially publish a low-definition stream.
Definition: NERtcEngineEnum.h:216
@ kNERtcVideoSendOnPubWithAll
Initially publish a high-definition stream and a low-definition stream at the same time.
Definition: NERtcEngineEnum.h:218
@ kNERtcVideoSendOnPubWithNone
Publish streams as the format subscribed by the remote peer.
Definition: NERtcEngineEnum.h:212
@ kNERtcVideoSendOnPubWithHigh
Initially publish a high-definition stream.
Definition: NERtcEngineEnum.h:214
NERtcSessionLeaveReason
The reasons why the user leaves the room.
Definition: NERtcEngineEnum.h:45
@ kNERtcSessionLeaveNormal
The user leaves the room normally.
Definition: NERtcEngineEnum.h:47
@ kNERtcSessionLeaveForKick
The user is removed from the room.
Definition: NERtcEngineEnum.h:53
@ kNERtcSessionLeaveTimeout
The user leaves the room due to connections timeout.
Definition: NERtcEngineEnum.h:55
@ kNERtcSessionLeaveForFailOver
The user leaves the room due to network failure.
Definition: NERtcEngineEnum.h:49
@ kNERTCSessionLeaveForUpdate
The user leaves the room due to Failover.
Definition: NERtcEngineEnum.h:51
NERtcVideoRotationMode
Video rotation Mode.
Definition: NERtcEngineEnum.h:236
@ NERtcVideoRotationModeByApp
Determine the video rotation mode by the app direction.
Definition: NERtcEngineEnum.h:242
@ NERtcVideoRotationModeBySystem
(default) Determine the video orientation mode based on the orientation of the system device.
Definition: NERtcEngineEnum.h:239
NERtcAudioRecordingQuality
Recording sound quality
Definition: NERtcEngineEnum.h:456
@ kNERtcAudioRecordingQualityHigh
High sound quality
Definition: NERtcEngineEnum.h:462
@ kNERtcAudioRecordingQualityLow
Low quality
Definition: NERtcEngineEnum.h:458
@ kNERtcAudioRecordingQualityMedium
(default) medium quality
Definition: NERtcEngineEnum.h:460
NERtcConnectionStateType
The connection status of the current engine
Definition: NERtcEngineEnum.h:26
@ kNERtcConnectionStateDisconnected
No user joins the room.
Definition: NERtcEngineEnum.h:30
@ kNERtcConnectionStateConnecting
A user is joining the room.
Definition: NERtcEngineEnum.h:32
@ kNERtcConnectionStateFailed
A user fails to join the room.
Definition: NERtcEngineEnum.h:38
@ kNERtcConnectionStateConnected
A user successfully joined the room.
Definition: NERtcEngineEnum.h:34
@ kNERtcConnectionStateUnknown
The engine is not initialized.
Definition: NERtcEngineEnum.h:28
@ kNERtcConnectionStateReconnecting
A user is rejoining the room.
Definition: NERtcEngineEnum.h:36
NERtcVideoOutputOrientationMode
Video orientation mode.
Definition: NERtcEngineEnum.h:261
@ kNERtcVideoOutputOrientationModeAdaptative
(default) The direction of the video output by the SDK in this mode is consistent with the direction ...
Definition: NERtcEngineEnum.h:268
@ kNERtcVideoOutputOrientationModeFixedLandscape
In this mode, the SDK always outputs videos in landscape mode.
Definition: NERtcEngineEnum.h:273
@ kNERtcVideoOutputOrientationModeFixedPortrait
In this mode, the SDK always outputs videos in portrait mode.
Definition: NERtcEngineEnum.h:278
NERtcRemoteVideoStreamType
The type of the remote video stream
Definition: NERtcEngineEnum.h:200
@ kNERtcRemoteVideoStreamTypeHigh
High-definition stream with HD video quality.
Definition: NERtcEngineEnum.h:202
@ kNERtcRemoteVideoStreamTypeLow
Low-definition stream with LD video quality.
Definition: NERtcEngineEnum.h:204
NERtcVideoProfileType
Video profile type
Definition: NERtcEngineEnum.h:113
@ kNERtcVideoProfileLowest
LD (160 × 120/90 @ 15fps)
Definition: NERtcEngineEnum.h:115
@ kNERtcVideoProfileMAX
LD (160 × 120/90 @ 15fps)
Definition: NERtcEngineEnum.h:125
@ kNERtcVideoProfileHD720P
HD (1280 x 720 @ 30 fps)
Definition: NERtcEngineEnum.h:121
@ kNERtcVideoProfileHD1080P
1080P (1920 x 1080 @30 fps)
Definition: NERtcEngineEnum.h:123
@ kNERtcVideoProfileStandard
SD (640 x 360/480 @3 0 fps)
Definition: NERtcEngineEnum.h:119
@ kNERtcVideoProfileLow
LD (320 x 180/240 @ 15 fps)
Definition: NERtcEngineEnum.h:117
@ kNERtcVideoProfileFake
FakeVideo logo, only displayed in the callback.
Definition: NERtcEngineEnum.h:128
NERtcStreamFallbackOptions
Definition: NERtcEngineEnum.h:435
@ kNERtcStreamFallbackOptionVideoStreamLow
In an unstable downlink network, the SDK only receives low-definition streams, which have low resolut...
Definition: NERtcEngineEnum.h:446
@ kNERtcStreamFallbackOptionDisabled
When the uplink or downlink network is unstable, the audio and video streams will not fallback,...
Definition: NERtcEngineEnum.h:441
@ kNERtcStreamFallbackOptionAudioOnly
Definition: NERtcEngineEnum.h:450
NERtcNetworkConnectionType
Type of network connection
Definition: NERtcEngineEnum.h:636
@ kNERtcNetworkConnectionType4G
4G.
Definition: NERtcEngineEnum.h:646
@ kNERtcNetworkConnectionTypeWWAN
The ISP network, but the ISP cannot be identified.
Definition: NERtcEngineEnum.h:652
@ kNERtcNetworkConnectionType5G
5G.
Definition: NERtcEngineEnum.h:648
@ kNERtcNetworkConnectionTypeNone
Not detected.
Definition: NERtcEngineEnum.h:638
@ kNERtcNetworkConnectionTypeUnknown
Unknown.
Definition: NERtcEngineEnum.h:640
@ kNERtcNetworkConnectionTypeWiFi
WiFi.
Definition: NERtcEngineEnum.h:650
@ kNERtcNetworkConnectionType3G
3G.
Definition: NERtcEngineEnum.h:644
@ kNERtcNetworkConnectionType2G
2G.
Definition: NERtcEngineEnum.h:642
NERtcAudioRecordingCode
The status code of recording callbacks
Definition: NERtcEngineEnum.h:468
@ kNERtcAudioRecordingOpenFileFailed
Unable to create a recording file.
Definition: NERtcEngineEnum.h:476
@ kNERtcAudioRecordingCodeStart
Start recording.
Definition: NERtcEngineEnum.h:478
@ kNERtcAudioRecordingRecordError
Recording error.
Definition: NERtcEngineEnum.h:480
@ kNERtcAudioRecordingCodeFinish
Recording is complete.
Definition: NERtcEngineEnum.h:482
@ NERtcAudioRecordingCodeErrorSuffix
Unsupported recording file format.
Definition: NERtcEngineEnum.h:470
NERtcNetworkQuality
Network quality
Definition: NERtcEngineEnum.h:792
@ kNERtcNetworkQualityPoor
Poor network does not affect communication
Definition: NERtcEngineEnum.h:800
@ kNERtcNetworkQualityVeryBad
The network quality is very poor.
Definition: NERtcEngineEnum.h:804
@ kNERtcNetworkQualityDown
Users are unable to communicate with each other.
Definition: NERtcEngineEnum.h:806
@ kNERtcNetworkQualityGood
Good network quality is close to excellent but has the bitrate is lower an excellent network.
Definition: NERtcEngineEnum.h:798
@ kNERtcNetworkQualityExcellent
Excellent network quality
Definition: NERtcEngineEnum.h:796
@ kNERtcNetworkQualityBad
Users can communicate with each other without smoothness.
Definition: NERtcEngineEnum.h:802
@ kNERtcNetworkQualityUnknown
Unknown network quality
Definition: NERtcEngineEnum.h:794
NERtcAudioScenarioType
Audio scenarios Different audio scenarios use different audio capture modes (mobile platforms) and pl...
Definition: NERtcEngineEnum.h:391
@ kNERtcAudioScenarioChatRoom
Chat room
Definition: NERtcEngineEnum.h:399
@ kNERtcAudioScenarioSpeech
Voice
Definition: NERtcEngineEnum.h:395
@ kNERtcAudioScenarioDefault
The default audio scenario (voice).
Definition: NERtcEngineEnum.h:393
@ kNERtcAudioScenarioMusic
Music
Definition: NERtcEngineEnum.h:397
NERtcChannelProfileType
Sets a room scene.
Definition: NERtcEngineEnum.h:405
@ kNERtcChannelProfileCommunication
(default) communications.
Definition: NERtcEngineEnum.h:407
@ kNERtcChannelProfileLiveBroadcasting
Live streaming.
Definition: NERtcEngineEnum.h:409
NERtcVideoDeviceState
The video device status is unlimited, and the SDK has full control over the Audio Session.
Definition: NERtcEngineEnum.h:777
@ kNERtcVideoDeviceStateStoped
The video device is stopped.
Definition: NERtcEngineEnum.h:783
@ kNERtcVideoDeviceStateUnInitialized
The video device is uninitialized.
Definition: NERtcEngineEnum.h:785
@ kNERtcVideoDeviceStateStarted
The video device is started.
Definition: NERtcEngineEnum.h:781
@ kNERtcVideoDeviceStateInitialized
The video device is initialized.
Definition: NERtcEngineEnum.h:779
NERtcClientRole
User role
Definition: NERtcEngineEnum.h:61
@ kNERtcClientRoleBroadcaster
The role of host in live streaming mode.
Definition: NERtcEngineEnum.h:63
@ kNERtcClientRoleAudience
The role of audience in live streaming mode.
Definition: NERtcEngineEnum.h:65
NERtcAudioType
Audio type
Definition: NERtcEngineEnum.h:721
@ kNERtcAudioTypePCM16
PCM 16.
Definition: NERtcEngineEnum.h:723
NERtcVideoMirrorMode
Video mirror mode.
Definition: NERtcEngineEnum.h:249
@ kNERtcVideoMirrorModeDisabled
Disable mirror mode.
Definition: NERtcEngineEnum.h:255
@ kNERtcVideoMirrorModeEnabled
Enable mirror mode.
Definition: NERtcEngineEnum.h:253
@ kNERtcVideoMirrorModeAuto
(default) The mirror mode is determined by the SDK.
Definition: NERtcEngineEnum.h:251
NERtcAudioFrameOpMode
Audio data read and write mode
Definition: NERtcEngineEnum.h:729
@ kNERtcAudioFrameOpModeReadWrite
Read and write mode.
Definition: NERtcEngineEnum.h:733
@ kNERtcAudioFrameOpModeReadOnly
Read-only mode.
Definition: NERtcEngineEnum.h:731
NERtcStreamChannelType
Stream type for sending SEI
Definition: NERtcEngineEnum.h:336
@ kNERtcStreamChannelTypeMainStream
Bigstream.
Definition: NERtcEngineEnum.h:338
@ kNERtcStreamChannelTypeSubStream
Substream.
Definition: NERtcEngineEnum.h:340
NERtcEncryptionMode
Encryption mode
Definition: NERtcEngineEnum.h:851
@ NERtcEncryptionModeGMCryptoSM4ECB
128-bit SM4 encryption, ECB mode.
Definition: NERtcEngineEnum.h:855
NERtcAudioSessionOperationRestriction
Audio session control permissions The SDK has the permissions of Audio Session
Definition: NERtcEngineEnum.h:417
@ kNERtcAudioSessionOperationRestrictionAll
If you restrict the SDK to perform operations on the Audio Session, the SDK cannot configure the Audi...
Definition: NERtcEngineEnum.h:421
@ kNERtcAudioSessionOperationRestrictionDeactivateSession
When a user leaves the room, the SDK will keep the Audio Session active.
Definition: NERtcEngineEnum.h:423
@ kNERtcAudioSessionOperationRestrictionNone
The SDK has full permissions and can control the Audio Session
Definition: NERtcEngineEnum.h:419
NERtcLiveStreamStateCode
Live streaming status code
Definition: NERtcEngineEnum.h:706
@ kNERtcLsStatePushFail
Fails to publish streams in Interactive Live Streaming
Definition: NERtcEngineEnum.h:710
@ kNERtcLsStatePushing
Publishing streams
Definition: NERtcEngineEnum.h:708
@ kNERtcLsStatePushStopped
Streaming ends
Definition: NERtcEngineEnum.h:712
NERtcTransportType
云代理模式。
Definition: NERtcEngineEnum.h:866
@ NERtcTransportTypeNoneProxy
0:关闭已设置的云代理。
Definition: NERtcEngineEnum.h:875
@ NERtcTransportTypeUDPProxy
1: 开启 UDP 协议的云代理。
Definition: NERtcEngineEnum.h:884
NERtcReasonConnectionChangedType
The reason why the connection status of the engine connection changes.
Definition: NERtcEngineEnum.h:71
@ kNERtcReasonConnectionChangedRequestChannelFailed
Fails to request a room.
Definition: NERtcEngineEnum.h:91
@ kNERtcReasonConnectionChangedSettingProxyServer
开始使用云代理进行连接。
Definition: NERtcEngineEnum.h:104
@ kNERtcReasonConnectionChangedReDispatch
The server IP is reassigned.
Definition: NERtcEngineEnum.h:95
@ kNERtcReasonConnectionChangedJoinSucceed
A user successfully joins the room.
Definition: NERtcEngineEnum.h:83
@ kNERtcReasonConnectionChangedBeKicked
The user is removed from the room.
Definition: NERtcEngineEnum.h:77
@ kNERtcReasonConnectionChangedSignalDisconnected
Signaling connection fails.
Definition: NERtcEngineEnum.h:89
@ kNERtcReasonConnectionChangedLeaveChannel
A user leaves the room.
Definition: NERtcEngineEnum.h:73
@ kNERtcReasonConnectionChangedTimeOut
The connection times out.
Definition: NERtcEngineEnum.h:79
@ kNERtcReasonConnectionChangedChannelClosed
The room is closed.
Definition: NERtcEngineEnum.h:75
@ kNERtcReasonConnectionChangedJoinChannelFailed
A user fails to join the room.
Definition: NERtcEngineEnum.h:93
@ kNERtcReasonConnectionChangedJoinChannel
A user joins the room.
Definition: NERtcEngineEnum.h:81
@ kNERtcReasonConnectionChangedMediaConnectionDisconnected
Media stream disconnected.
Definition: NERtcEngineEnum.h:87
@ kNERtcReasonConnectionChangedReJoinSucceed
A user successfully rejoins the room.
Definition: NERtcEngineEnum.h:85
NERtcVideoDeviceType
Video device type
Definition: NERtcEngineEnum.h:752
@ kNERtcVideoDeviceTypeUnknown
Unknown video device.
Definition: NERtcEngineEnum.h:754
@ kNERtcVideoDeviceTypeCapture
Video capture device
Definition: NERtcEngineEnum.h:756
NERtcVoiceBeautifierType
The preset value of the voice beautifier
Definition: NERtcEngineEnum.h:540
@ kNERtcVoiceBeautifierLive
Live
Definition: NERtcEngineEnum.h:564
@ kNERtcVoiceBeautifierRecordingStudio
Recording studio
Definition: NERtcEngineEnum.h:552
@ kNERtcVoiceBeautifierOff
By default, the voice beautifier effect is disabled.
Definition: NERtcEngineEnum.h:542
@ kNERtcVoiceBeautifierChurch
Church
Definition: NERtcEngineEnum.h:560
@ kNERtcVoiceBeautifierMuffled
Muffled
Definition: NERtcEngineEnum.h:544
@ kNERtcVoiceBeautifierKTV
KTV
Definition: NERtcEngineEnum.h:556
@ kNERtcVoiceBeautifierMellow
Mellow
Definition: NERtcEngineEnum.h:546
@ kNERtcVoiceBeautifierMagnetic
Magnetic
Definition: NERtcEngineEnum.h:550
@ kNERtcVoiceBeautifierBedroom
Bedroom
Definition: NERtcEngineEnum.h:562
@ kNERtcVoiceBeautifierNature
Nature
Definition: NERtcEngineEnum.h:554
@ kNERtcVoiceBeautifierRemote
Remote
Definition: NERtcEngineEnum.h:558
@ kNERtcVoiceBeautifierClear
Clear
Definition: NERtcEngineEnum.h:548
NERtcDegradationPreference
Video encoding adaptation preference with limited bandwidth.
Definition: NERtcEngineEnum.h:162
@ kNERtcDegradationBalanced
Maintain a balance between the frame rate and video quality.
Definition: NERtcEngineEnum.h:174
@ kNERtcDegradationMaintainQuality
Clarity is prioritized.
Definition: NERtcEngineEnum.h:172
@ kNERtcDegradationDefault
By default, adjust the adaptation preference based on scenarios.
Definition: NERtcEngineEnum.h:168
@ kNERtcDegradationMaintainFramerate
Smooth stream comes first.
Definition: NERtcEngineEnum.h:170
NERtcLiveStreamAudioSampleRate
Live streaming audio sample rate
Definition: NERtcEngineEnum.h:660
@ kNERtcLiveStreamAudioSampleRate44100
44.1K
Definition: NERtcEngineEnum.h:664
@ kNERtcLiveStreamAudioSampleRate32000
32K
Definition: NERtcEngineEnum.h:662
@ kNERtcLiveStreamAudioSampleRate48000
48K
Definition: NERtcEngineEnum.h:666
NERtcVideoFrameRate
Video frame rate -kNERtcVideoFrameRateFpsDefault: By default, the bigstream video frame rate is selec...
Definition: NERtcEngineEnum.h:135
@ kNERtcVideoFrameRateFpsDefault
0 fps.
Definition: NERtcEngineEnum.h:137
@ kNERtcVideoFrameRateFps10
10 fps.
Definition: NERtcEngineEnum.h:141
@ kNERtcVideoFrameRateFps24
24 fps.
Definition: NERtcEngineEnum.h:145
@ kNERtcVideoFrameRateFps15
15 fps.
Definition: NERtcEngineEnum.h:143
@ kNERtcVideoFrameRateFps60
60 fps.
Definition: NERtcEngineEnum.h:149
@ kNERtcVideoFrameRateFps7
7 fps.
Definition: NERtcEngineEnum.h:139
@ kNERtcVideoFrameRateFps30
30 fps.
Definition: NERtcEngineEnum.h:147
NERtcVideoRenderScaleMode
Video rendering zoom mode
Definition: NERtcEngineEnum.h:224
@ kNERtcVideoRenderScaleFullFill
Video size is scaled non-proportionally.
Definition: NERtcEngineEnum.h:228
@ kNERtcVideoRenderScaleCropFill
Adaptive to the area, the video size is scaled proportionally.
Definition: NERtcEngineEnum.h:230
@ kNERtcVideoRenderScaleFit
Adaptive to the video.
Definition: NERtcEngineEnum.h:226
NERtcMediaPriorityType
Definition: NERtcEngineEnum.h:428
@ kNERtcMediaPriorityNormal
(default) Normal priority
Definition: NERtcEngineEnum.h:432
@ kNERtcMediaPriorityHigh
High priority
Definition: NERtcEngineEnum.h:430
NERtcRecordType
The cloud recording mode that records streams published from the local client.
Definition: NERtcEngineEnum.h:572
@ kNERtcRecordTypeMix
Composite recording mode.
Definition: NERtcEngineEnum.h:576
@ kNERtcRecordTypeSingle
Individual recording mode.
Definition: NERtcEngineEnum.h:578
@ kNERtcRecordTypeAll
Composite and individual stream recording mode.
Definition: NERtcEngineEnum.h:574
NERtcVideoRotationType
Rotation direction of video data
Definition: NERtcEngineEnum.h:310
@ kNERtcVideoRotation_0
0°.
Definition: NERtcEngineEnum.h:312
@ kNERtcVideoRotation_180
180°.
Definition: NERtcEngineEnum.h:316
@ kNERtcVideoRotation_90
90°.
Definition: NERtcEngineEnum.h:314
@ kNERtcVideoRotation_270
270°.
Definition: NERtcEngineEnum.h:318