agora-electron-sdk 4.2.6 → 4.3.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/js/Private/AgoraBase.js +139 -174
- package/js/Private/AgoraMediaBase.js +49 -20
- package/js/Private/AgoraMediaPlayerTypes.js +32 -23
- package/js/Private/IAgoraH265Transcoder.js +39 -0
- package/js/Private/IAgoraMediaStreamingSource.js +32 -32
- package/js/Private/IAgoraMusicContentCenter.js +19 -19
- package/js/Private/IAgoraRhythmPlayer.js +9 -9
- package/js/Private/IAgoraRtcEngine.js +12 -12
- package/js/Private/IAgoraSpatialAudio.js +3 -31
- package/js/Private/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/js/Private/impl/AgoraMediaBaseImpl.js +26 -2
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +119 -0
- package/js/Private/impl/IAgoraMediaEngineImpl.js +13 -13
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +92 -74
- package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +12 -2
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +2 -2
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +20 -20
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +66 -84
- package/js/Private/impl/IAgoraRtcEngineImpl.js +456 -440
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +157 -181
- package/js/Private/impl/IAudioDeviceManagerImpl.js +22 -22
- package/js/Private/internal/AgoraH265TranscoderInternal.js +86 -0
- package/js/Private/internal/AgoraMediaBaseInternal.js +34 -0
- package/js/Private/internal/IrisApiEngine.js +35 -20
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +0 -39
- package/js/Private/internal/MediaPlayerInternal.js +22 -21
- package/js/Private/internal/MusicContentCenterInternal.js +1 -4
- package/js/Private/internal/RtcEngineExInternal.js +101 -134
- package/js/Private/ti/AgoraMediaBase-ti.js +1 -1
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +40 -0
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +4 -2
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +5 -5
- package/js/Private/ti/IAgoraRtcEngine-ti.js +12 -11
- package/js/Renderer/AgoraView.js +28 -14
- package/js/Renderer/IRenderer.js +65 -17
- package/js/Renderer/IRendererManager.js +230 -0
- package/js/Renderer/RendererCache.js +170 -0
- package/js/Renderer/RendererManager.js +49 -460
- package/js/Renderer/WebGLRenderer/index.js +82 -234
- package/js/Renderer/YUVCanvasRenderer/index.js +27 -147
- package/js/Types.js +6 -6
- package/js/Utils.js +37 -88
- package/package.json +4 -3
- package/scripts/clean.js +12 -0
- package/scripts/synclib.js +8 -2
- package/ts/Private/AgoraBase.ts +225 -201
- package/ts/Private/AgoraMediaBase.ts +63 -25
- package/ts/Private/AgoraMediaPlayerTypes.ts +67 -24
- package/ts/Private/IAgoraH265Transcoder.ts +73 -0
- package/ts/Private/IAgoraLog.ts +1 -0
- package/ts/Private/IAgoraMediaEngine.ts +12 -7
- package/ts/Private/IAgoraMediaPlayer.ts +47 -21
- package/ts/Private/IAgoraMediaPlayerSource.ts +27 -6
- package/ts/Private/IAgoraMediaStreamingSource.ts +38 -37
- package/ts/Private/IAgoraMusicContentCenter.ts +20 -20
- package/ts/Private/IAgoraRhythmPlayer.ts +7 -6
- package/ts/Private/IAgoraRtcEngine.ts +407 -364
- package/ts/Private/IAgoraRtcEngineEx.ts +25 -61
- package/ts/Private/IAgoraSpatialAudio.ts +80 -191
- package/ts/Private/IAudioDeviceManager.ts +27 -14
- package/ts/Private/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/ts/Private/impl/AgoraMediaBaseImpl.ts +25 -1
- package/ts/Private/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/ts/Private/impl/IAgoraMediaEngineImpl.ts +13 -13
- package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +110 -81
- package/ts/Private/impl/IAgoraMediaPlayerSourceImpl.ts +17 -2
- package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +2 -2
- package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +21 -21
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +71 -106
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +589 -572
- package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +211 -218
- package/ts/Private/impl/IAudioDeviceManagerImpl.ts +22 -22
- package/ts/Private/internal/AgoraH265TranscoderInternal.ts +97 -0
- package/ts/Private/internal/AgoraMediaBaseInternal.ts +15 -0
- package/ts/Private/internal/IrisApiEngine.ts +42 -27
- package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +1 -86
- package/ts/Private/internal/MediaPlayerInternal.ts +20 -29
- package/ts/Private/internal/MusicContentCenterInternal.ts +1 -5
- package/ts/Private/internal/RtcEngineExInternal.ts +91 -204
- package/ts/Private/ti/AgoraMediaBase-ti.ts +1 -1
- package/ts/Private/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/ts/Private/ti/IAgoraMediaPlayerSource-ti.ts +4 -2
- package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +5 -5
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +12 -11
- package/ts/Renderer/AgoraView.ts +29 -19
- package/ts/Renderer/IRenderer.ts +71 -22
- package/ts/Renderer/IRendererManager.ts +273 -19
- package/ts/Renderer/RendererCache.ts +167 -0
- package/ts/Renderer/RendererManager.ts +62 -607
- package/ts/Renderer/WebGLRenderer/index.ts +117 -295
- package/ts/Renderer/YUVCanvasRenderer/index.ts +45 -198
- package/ts/Types.ts +17 -194
- package/ts/Utils.ts +36 -100
- package/types/Private/AgoraBase.d.ts +219 -200
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +63 -27
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaPlayerTypes.d.ts +65 -24
- package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -1
- package/types/Private/IAgoraH265Transcoder.d.ts +28 -0
- package/types/Private/IAgoraH265Transcoder.d.ts.map +1 -0
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +11 -6
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +42 -20
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayerSource.d.ts +23 -6
- package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
- package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -1
- package/types/Private/IAgoraMusicContentCenter.d.ts +19 -19
- package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +6 -6
- package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngine.d.ts +329 -293
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +21 -53
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAgoraSpatialAudio.d.ts +56 -167
- package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +27 -14
- package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/types/Private/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts +5 -1
- package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/types/Private/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +6 -4
- package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +2 -4
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +30 -25
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +20 -22
- package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -1
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/types/Private/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/types/Private/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/types/Private/internal/IrisApiEngine.d.ts +5 -2
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -15
- package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -1
- package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts +0 -1
- package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts +7 -13
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/types/Private/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -1
- package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -1
- package/types/Renderer/AgoraView.d.ts +4 -4
- package/types/Renderer/AgoraView.d.ts.map +1 -1
- package/types/Renderer/IRenderer.d.ts +11 -9
- package/types/Renderer/IRenderer.d.ts.map +1 -1
- package/types/Renderer/IRendererManager.d.ts +50 -12
- package/types/Renderer/IRendererManager.d.ts.map +1 -1
- package/types/Renderer/RendererCache.d.ts +36 -0
- package/types/Renderer/RendererCache.d.ts.map +1 -0
- package/types/Renderer/RendererManager.d.ts +13 -139
- package/types/Renderer/RendererManager.d.ts.map +1 -1
- package/types/Renderer/WebGLRenderer/index.d.ts +3 -18
- package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -1
- package/types/Renderer/YUVCanvasRenderer/index.d.ts +4 -10
- package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -1
- package/types/Types.d.ts +11 -187
- package/types/Types.d.ts.map +1 -1
- package/types/Utils.d.ts +3 -20
- package/types/Utils.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.
|
|
3
|
+
exports.RecorderInfo = exports.MediaRecorderConfiguration = exports.RecorderReasonCode = exports.RecorderState = exports.MediaRecorderStreamType = exports.MediaRecorderContainerFormat = exports.ExternalVideoSourceType = exports.VideoFrameProcessMode = exports.UserAudioSpectrumInfo = exports.AudioSpectrumData = exports.AudioParams = exports.AudioFramePosition = exports.AudioFrame = exports.AudioFrameType = exports.VideoModulePosition = exports.MediaPlayerSourceType = exports.VideoFrame = exports.ExternalVideoFrame = exports.VideoBufferType = exports.EglContextType = exports.IVideoFrameMetaInfo = exports.MetaInfoKey = exports.CameraVideoSourceType = exports.RenderModeType = exports.VideoPixelFormat = exports.AudioDualMonoMode = exports.AudioPcmFrame = exports.AudioEncodedFrameInfo = exports.PacketOptions = exports.ContentInspectConfig = exports.ContentInspectModule = exports.ContentInspectType = exports.ContentInspectResult = exports.MediaSourceType = exports.RawAudioFrameOpModeType = exports.AudioParameters = exports.BytesPerSample = exports.AudioRoute = exports.VideoSourceType = void 0;
|
|
4
4
|
require("./extension/AgoraMediaBaseExtension");
|
|
5
5
|
/**
|
|
6
6
|
* The type of the video source.
|
|
@@ -110,9 +110,9 @@ var AudioRoute;
|
|
|
110
110
|
*/
|
|
111
111
|
AudioRoute[AudioRoute["RouteLoudspeaker"] = 4] = "RouteLoudspeaker";
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* 5: The audio route is a Bluetooth device using the HFP protocol.
|
|
114
114
|
*/
|
|
115
|
-
AudioRoute[AudioRoute["
|
|
115
|
+
AudioRoute[AudioRoute["RouteBluetoothDeviceHfp"] = 5] = "RouteBluetoothDeviceHfp";
|
|
116
116
|
/**
|
|
117
117
|
* 7: The audio route is a USB peripheral device. (For macOS only)
|
|
118
118
|
*/
|
|
@@ -129,6 +129,10 @@ var AudioRoute;
|
|
|
129
129
|
* 9: The audio route is Apple AirPlay. (For macOS only)
|
|
130
130
|
*/
|
|
131
131
|
AudioRoute[AudioRoute["RouteAirplay"] = 9] = "RouteAirplay";
|
|
132
|
+
/**
|
|
133
|
+
* 10: The audio route is a Bluetooth device using the A2DP protocol.
|
|
134
|
+
*/
|
|
135
|
+
AudioRoute[AudioRoute["RouteBluetoothDeviceA2dp"] = 10] = "RouteBluetoothDeviceA2dp";
|
|
132
136
|
})(AudioRoute = exports.AudioRoute || (exports.AudioRoute = {}));
|
|
133
137
|
/**
|
|
134
138
|
* @ignore
|
|
@@ -181,7 +185,7 @@ var MediaSourceType;
|
|
|
181
185
|
*/
|
|
182
186
|
MediaSourceType[MediaSourceType["PrimaryCameraSource"] = 2] = "PrimaryCameraSource";
|
|
183
187
|
/**
|
|
184
|
-
* 3:
|
|
188
|
+
* 3: A secondary camera.
|
|
185
189
|
*/
|
|
186
190
|
MediaSourceType[MediaSourceType["SecondaryCameraSource"] = 3] = "SecondaryCameraSource";
|
|
187
191
|
/**
|
|
@@ -193,7 +197,7 @@ var MediaSourceType;
|
|
|
193
197
|
*/
|
|
194
198
|
MediaSourceType[MediaSourceType["SecondaryScreenSource"] = 5] = "SecondaryScreenSource";
|
|
195
199
|
/**
|
|
196
|
-
*
|
|
200
|
+
* 6. Custom video source.
|
|
197
201
|
*/
|
|
198
202
|
MediaSourceType[MediaSourceType["CustomVideoSource"] = 6] = "CustomVideoSource";
|
|
199
203
|
/**
|
|
@@ -426,6 +430,25 @@ var CameraVideoSourceType;
|
|
|
426
430
|
*/
|
|
427
431
|
CameraVideoSourceType[CameraVideoSourceType["VideoSourceUnspecified"] = 2] = "VideoSourceUnspecified";
|
|
428
432
|
})(CameraVideoSourceType = exports.CameraVideoSourceType || (exports.CameraVideoSourceType = {}));
|
|
433
|
+
/**
|
|
434
|
+
* @ignore
|
|
435
|
+
*/
|
|
436
|
+
var MetaInfoKey;
|
|
437
|
+
(function (MetaInfoKey) {
|
|
438
|
+
/**
|
|
439
|
+
* @ignore
|
|
440
|
+
*/
|
|
441
|
+
MetaInfoKey[MetaInfoKey["KeyFaceCapture"] = 0] = "KeyFaceCapture";
|
|
442
|
+
})(MetaInfoKey = exports.MetaInfoKey || (exports.MetaInfoKey = {}));
|
|
443
|
+
/**
|
|
444
|
+
* @ignore
|
|
445
|
+
*/
|
|
446
|
+
var IVideoFrameMetaInfo = /** @class */ (function () {
|
|
447
|
+
function IVideoFrameMetaInfo() {
|
|
448
|
+
}
|
|
449
|
+
return IVideoFrameMetaInfo;
|
|
450
|
+
}());
|
|
451
|
+
exports.IVideoFrameMetaInfo = IVideoFrameMetaInfo;
|
|
429
452
|
/**
|
|
430
453
|
* @ignore
|
|
431
454
|
*/
|
|
@@ -502,7 +525,7 @@ var MediaPlayerSourceType;
|
|
|
502
525
|
var VideoModulePosition;
|
|
503
526
|
(function (VideoModulePosition) {
|
|
504
527
|
/**
|
|
505
|
-
* 1: The
|
|
528
|
+
* 1: The location of the locally collected video data after preprocessing corresponds to the onCaptureVideoFrame callback. The observed video here has the effect of video pre-processing, which can be verified by enabling image enhancement, virtual background, or watermark.
|
|
506
529
|
*/
|
|
507
530
|
VideoModulePosition[VideoModulePosition["PositionPostCapturer"] = 1] = "PositionPostCapturer";
|
|
508
531
|
/**
|
|
@@ -510,9 +533,15 @@ var VideoModulePosition;
|
|
|
510
533
|
*/
|
|
511
534
|
VideoModulePosition[VideoModulePosition["PositionPreRenderer"] = 2] = "PositionPreRenderer";
|
|
512
535
|
/**
|
|
513
|
-
* 4: The pre-encoder position, which corresponds to the video data in the onPreEncodeVideoFrame callback.
|
|
536
|
+
* 4: The pre-encoder position, which corresponds to the video data in the onPreEncodeVideoFrame callback. The observed video here has the effects of video pre-processing and encoding pre-processing.
|
|
537
|
+
* To verify the pre-processing effects of the video, you can enable image enhancement, virtual background, or watermark.
|
|
538
|
+
* To verify the pre-encoding processing effect, you can set a lower frame rate (for example, 5 fps).
|
|
514
539
|
*/
|
|
515
540
|
VideoModulePosition[VideoModulePosition["PositionPreEncoder"] = 4] = "PositionPreEncoder";
|
|
541
|
+
/**
|
|
542
|
+
* 8: The position after local video capture and before pre-processing. The observed video here does not have pre-processing effects, which can be verified by enabling image enhancement, virtual background, or watermarks.
|
|
543
|
+
*/
|
|
544
|
+
VideoModulePosition[VideoModulePosition["PositionPostCapturerOrigin"] = 8] = "PositionPostCapturerOrigin";
|
|
516
545
|
})(VideoModulePosition = exports.VideoModulePosition || (exports.VideoModulePosition = {}));
|
|
517
546
|
/**
|
|
518
547
|
* Audio frame type.
|
|
@@ -656,7 +685,7 @@ var MediaRecorderStreamType;
|
|
|
656
685
|
var RecorderState;
|
|
657
686
|
(function (RecorderState) {
|
|
658
687
|
/**
|
|
659
|
-
* -1: An error occurs during the recording. See
|
|
688
|
+
* -1: An error occurs during the recording. See RecorderReasonCode for the reason.
|
|
660
689
|
*/
|
|
661
690
|
RecorderState[RecorderState["RecorderStateError"] = -1] = "RecorderStateError";
|
|
662
691
|
/**
|
|
@@ -671,29 +700,29 @@ var RecorderState;
|
|
|
671
700
|
/**
|
|
672
701
|
* The reason for the state change.
|
|
673
702
|
*/
|
|
674
|
-
var
|
|
675
|
-
(function (
|
|
703
|
+
var RecorderReasonCode;
|
|
704
|
+
(function (RecorderReasonCode) {
|
|
676
705
|
/**
|
|
677
706
|
* 0: No error.
|
|
678
707
|
*/
|
|
679
|
-
|
|
708
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonNone"] = 0] = "RecorderReasonNone";
|
|
680
709
|
/**
|
|
681
|
-
*
|
|
710
|
+
* @ignore
|
|
682
711
|
*/
|
|
683
|
-
|
|
712
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonWriteFailed"] = 1] = "RecorderReasonWriteFailed";
|
|
684
713
|
/**
|
|
685
|
-
*
|
|
714
|
+
* @ignore
|
|
686
715
|
*/
|
|
687
|
-
|
|
716
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonNoStream"] = 2] = "RecorderReasonNoStream";
|
|
688
717
|
/**
|
|
689
|
-
*
|
|
718
|
+
* @ignore
|
|
690
719
|
*/
|
|
691
|
-
|
|
720
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonOverMaxDuration"] = 3] = "RecorderReasonOverMaxDuration";
|
|
692
721
|
/**
|
|
693
|
-
*
|
|
722
|
+
* @ignore
|
|
694
723
|
*/
|
|
695
|
-
|
|
696
|
-
})(
|
|
724
|
+
RecorderReasonCode[RecorderReasonCode["RecorderReasonConfigChanged"] = 4] = "RecorderReasonConfigChanged";
|
|
725
|
+
})(RecorderReasonCode = exports.RecorderReasonCode || (exports.RecorderReasonCode = {}));
|
|
697
726
|
/**
|
|
698
727
|
* @ignore
|
|
699
728
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaSource = exports.PlayerUpdatedInfo = exports.CacheStatistics = exports.MediaPlayerMetadataType = exports.SrcInfo = exports.PlayerStreamInfo = exports.PlayerPreloadEvent = exports.MediaPlayerEvent = exports.MediaStreamType = exports.
|
|
3
|
+
exports.MediaSource = exports.PlayerUpdatedInfo = exports.PlayerPlaybackStats = exports.CacheStatistics = exports.MediaPlayerMetadataType = exports.SrcInfo = exports.PlayerStreamInfo = exports.PlayerPreloadEvent = exports.MediaPlayerEvent = exports.MediaStreamType = exports.MediaPlayerReason = exports.MediaPlayerState = void 0;
|
|
4
4
|
require("./extension/AgoraMediaPlayerTypesExtension");
|
|
5
5
|
/**
|
|
6
6
|
* The playback state.
|
|
@@ -73,83 +73,83 @@ var MediaPlayerState;
|
|
|
73
73
|
MediaPlayerState[MediaPlayerState["PlayerStateFailed"] = 100] = "PlayerStateFailed";
|
|
74
74
|
})(MediaPlayerState = exports.MediaPlayerState || (exports.MediaPlayerState = {}));
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Reasons for the changes in the media player status.
|
|
77
77
|
*/
|
|
78
|
-
var
|
|
79
|
-
(function (
|
|
78
|
+
var MediaPlayerReason;
|
|
79
|
+
(function (MediaPlayerReason) {
|
|
80
80
|
/**
|
|
81
81
|
* 0: No error.
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonNone"] = 0] = "PlayerReasonNone";
|
|
84
84
|
/**
|
|
85
85
|
* -1: Invalid arguments.
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonInvalidArguments"] = -1] = "PlayerReasonInvalidArguments";
|
|
88
88
|
/**
|
|
89
89
|
* -2: Internal error.
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonInternal"] = -2] = "PlayerReasonInternal";
|
|
92
92
|
/**
|
|
93
93
|
* -3: No resource.
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonNoResource"] = -3] = "PlayerReasonNoResource";
|
|
96
96
|
/**
|
|
97
97
|
* -4: Invalid media resource.
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonInvalidMediaSource"] = -4] = "PlayerReasonInvalidMediaSource";
|
|
100
100
|
/**
|
|
101
101
|
* -5: The media stream type is unknown.
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonUnknownStreamType"] = -5] = "PlayerReasonUnknownStreamType";
|
|
104
104
|
/**
|
|
105
105
|
* -6: The object is not initialized.
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonObjNotInitialized"] = -6] = "PlayerReasonObjNotInitialized";
|
|
108
108
|
/**
|
|
109
109
|
* -7: The codec is not supported.
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonCodecNotSupported"] = -7] = "PlayerReasonCodecNotSupported";
|
|
112
112
|
/**
|
|
113
113
|
* -8: Invalid renderer.
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonVideoRenderFailed"] = -8] = "PlayerReasonVideoRenderFailed";
|
|
116
116
|
/**
|
|
117
117
|
* -9: An error with the internal state of the player occurs.
|
|
118
118
|
*/
|
|
119
|
-
|
|
119
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonInvalidState"] = -9] = "PlayerReasonInvalidState";
|
|
120
120
|
/**
|
|
121
121
|
* -10: The URL of the media resource cannot be found.
|
|
122
122
|
*/
|
|
123
|
-
|
|
123
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonUrlNotFound"] = -10] = "PlayerReasonUrlNotFound";
|
|
124
124
|
/**
|
|
125
125
|
* -11: Invalid connection between the player and the Agora Server.
|
|
126
126
|
*/
|
|
127
|
-
|
|
127
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonInvalidConnectionState"] = -11] = "PlayerReasonInvalidConnectionState";
|
|
128
128
|
/**
|
|
129
129
|
* -12: The playback buffer is insufficient.
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonSrcBufferUnderflow"] = -12] = "PlayerReasonSrcBufferUnderflow";
|
|
132
132
|
/**
|
|
133
133
|
* -13: The playback is interrupted.
|
|
134
134
|
*/
|
|
135
|
-
|
|
135
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonInterrupted"] = -13] = "PlayerReasonInterrupted";
|
|
136
136
|
/**
|
|
137
137
|
* -14: The SDK does not support the method being called.
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonNotSupported"] = -14] = "PlayerReasonNotSupported";
|
|
140
140
|
/**
|
|
141
141
|
* @ignore
|
|
142
142
|
*/
|
|
143
|
-
|
|
143
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonTokenExpired"] = -15] = "PlayerReasonTokenExpired";
|
|
144
144
|
/**
|
|
145
145
|
* @ignore
|
|
146
146
|
*/
|
|
147
|
-
|
|
147
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonIpExpired"] = -16] = "PlayerReasonIpExpired";
|
|
148
148
|
/**
|
|
149
149
|
* -17: An unknown error.
|
|
150
150
|
*/
|
|
151
|
-
|
|
152
|
-
})(
|
|
151
|
+
MediaPlayerReason[MediaPlayerReason["PlayerReasonUnknown"] = -17] = "PlayerReasonUnknown";
|
|
152
|
+
})(MediaPlayerReason = exports.MediaPlayerReason || (exports.MediaPlayerReason = {}));
|
|
153
153
|
/**
|
|
154
154
|
* The type of the media stream.
|
|
155
155
|
*/
|
|
@@ -305,6 +305,15 @@ var CacheStatistics = /** @class */ (function () {
|
|
|
305
305
|
return CacheStatistics;
|
|
306
306
|
}());
|
|
307
307
|
exports.CacheStatistics = CacheStatistics;
|
|
308
|
+
/**
|
|
309
|
+
* The information of the media file being played.
|
|
310
|
+
*/
|
|
311
|
+
var PlayerPlaybackStats = /** @class */ (function () {
|
|
312
|
+
function PlayerPlaybackStats() {
|
|
313
|
+
}
|
|
314
|
+
return PlayerPlaybackStats;
|
|
315
|
+
}());
|
|
316
|
+
exports.PlayerPlaybackStats = PlayerPlaybackStats;
|
|
308
317
|
/**
|
|
309
318
|
* Information related to the media player.
|
|
310
319
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IH265Transcoder = exports.H265TranscodeResult = void 0;
|
|
4
|
+
require("./extension/IAgoraH265TranscoderExtension");
|
|
5
|
+
/* enum_H265TranscodeResult */
|
|
6
|
+
var H265TranscodeResult;
|
|
7
|
+
(function (H265TranscodeResult) {
|
|
8
|
+
/* enum_H265TranscodeResult_H265TranscodeResultUnknown */
|
|
9
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultUnknown"] = -1] = "H265TranscodeResultUnknown";
|
|
10
|
+
/* enum_H265TranscodeResult_H265TranscodeResultSuccess */
|
|
11
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultSuccess"] = 0] = "H265TranscodeResultSuccess";
|
|
12
|
+
/* enum_H265TranscodeResult_H265TranscodeResultRequestInvalid */
|
|
13
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultRequestInvalid"] = 1] = "H265TranscodeResultRequestInvalid";
|
|
14
|
+
/* enum_H265TranscodeResult_H265TranscodeResultUnauthorized */
|
|
15
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultUnauthorized"] = 2] = "H265TranscodeResultUnauthorized";
|
|
16
|
+
/* enum_H265TranscodeResult_H265TranscodeResultTokenExpired */
|
|
17
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultTokenExpired"] = 3] = "H265TranscodeResultTokenExpired";
|
|
18
|
+
/* enum_H265TranscodeResult_H265TranscodeResultForbidden */
|
|
19
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultForbidden"] = 4] = "H265TranscodeResultForbidden";
|
|
20
|
+
/* enum_H265TranscodeResult_H265TranscodeResultNotFound */
|
|
21
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultNotFound"] = 5] = "H265TranscodeResultNotFound";
|
|
22
|
+
/* enum_H265TranscodeResult_H265TranscodeResultConflicted */
|
|
23
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultConflicted"] = 6] = "H265TranscodeResultConflicted";
|
|
24
|
+
/* enum_H265TranscodeResult_H265TranscodeResultNotSupported */
|
|
25
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultNotSupported"] = 7] = "H265TranscodeResultNotSupported";
|
|
26
|
+
/* enum_H265TranscodeResult_H265TranscodeResultTooOften */
|
|
27
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultTooOften"] = 8] = "H265TranscodeResultTooOften";
|
|
28
|
+
/* enum_H265TranscodeResult_H265TranscodeResultServerInternalError */
|
|
29
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultServerInternalError"] = 9] = "H265TranscodeResultServerInternalError";
|
|
30
|
+
/* enum_H265TranscodeResult_H265TranscodeResultServiceUnavailable */
|
|
31
|
+
H265TranscodeResult[H265TranscodeResult["H265TranscodeResultServiceUnavailable"] = 10] = "H265TranscodeResultServiceUnavailable";
|
|
32
|
+
})(H265TranscodeResult = exports.H265TranscodeResult || (exports.H265TranscodeResult = {}));
|
|
33
|
+
/* class_IH265Transcoder */
|
|
34
|
+
var IH265Transcoder = /** @class */ (function () {
|
|
35
|
+
function IH265Transcoder() {
|
|
36
|
+
}
|
|
37
|
+
return IH265Transcoder;
|
|
38
|
+
}());
|
|
39
|
+
exports.IH265Transcoder = IH265Transcoder;
|
|
@@ -2,73 +2,73 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InputSeiData = exports.StreamingSrcState = exports.StreamingSrcErr = void 0;
|
|
4
4
|
require("./extension/IAgoraMediaStreamingSourceExtension");
|
|
5
|
-
/*
|
|
5
|
+
/* enum_StreamingSrcErr */
|
|
6
6
|
var StreamingSrcErr;
|
|
7
7
|
(function (StreamingSrcErr) {
|
|
8
|
-
/*
|
|
8
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNone */
|
|
9
9
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrNone"] = 0] = "StreamingSrcErrNone";
|
|
10
|
-
/*
|
|
10
|
+
/* enum_StreamingSrcErr_StreamingSrcErrUnknown */
|
|
11
11
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrUnknown"] = 1] = "StreamingSrcErrUnknown";
|
|
12
|
-
/*
|
|
12
|
+
/* enum_StreamingSrcErr_StreamingSrcErrInvalidParam */
|
|
13
13
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrInvalidParam"] = 2] = "StreamingSrcErrInvalidParam";
|
|
14
|
-
/*
|
|
14
|
+
/* enum_StreamingSrcErr_StreamingSrcErrBadState */
|
|
15
15
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrBadState"] = 3] = "StreamingSrcErrBadState";
|
|
16
|
-
/*
|
|
16
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNoMem */
|
|
17
17
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrNoMem"] = 4] = "StreamingSrcErrNoMem";
|
|
18
|
-
/*
|
|
18
|
+
/* enum_StreamingSrcErr_StreamingSrcErrBufferOverflow */
|
|
19
19
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrBufferOverflow"] = 5] = "StreamingSrcErrBufferOverflow";
|
|
20
|
-
/*
|
|
20
|
+
/* enum_StreamingSrcErr_StreamingSrcErrBufferUnderflow */
|
|
21
21
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrBufferUnderflow"] = 6] = "StreamingSrcErrBufferUnderflow";
|
|
22
|
-
/*
|
|
22
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNotFound */
|
|
23
23
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrNotFound"] = 7] = "StreamingSrcErrNotFound";
|
|
24
|
-
/*
|
|
24
|
+
/* enum_StreamingSrcErr_StreamingSrcErrTimeout */
|
|
25
25
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrTimeout"] = 8] = "StreamingSrcErrTimeout";
|
|
26
|
-
/*
|
|
26
|
+
/* enum_StreamingSrcErr_StreamingSrcErrExpired */
|
|
27
27
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrExpired"] = 9] = "StreamingSrcErrExpired";
|
|
28
|
-
/*
|
|
28
|
+
/* enum_StreamingSrcErr_StreamingSrcErrUnsupported */
|
|
29
29
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrUnsupported"] = 10] = "StreamingSrcErrUnsupported";
|
|
30
|
-
/*
|
|
30
|
+
/* enum_StreamingSrcErr_StreamingSrcErrNotExist */
|
|
31
31
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrNotExist"] = 11] = "StreamingSrcErrNotExist";
|
|
32
|
-
/*
|
|
32
|
+
/* enum_StreamingSrcErr_StreamingSrcErrExist */
|
|
33
33
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrExist"] = 12] = "StreamingSrcErrExist";
|
|
34
|
-
/*
|
|
34
|
+
/* enum_StreamingSrcErr_StreamingSrcErrOpen */
|
|
35
35
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrOpen"] = 13] = "StreamingSrcErrOpen";
|
|
36
|
-
/*
|
|
36
|
+
/* enum_StreamingSrcErr_StreamingSrcErrClose */
|
|
37
37
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrClose"] = 14] = "StreamingSrcErrClose";
|
|
38
|
-
/*
|
|
38
|
+
/* enum_StreamingSrcErr_StreamingSrcErrRead */
|
|
39
39
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrRead"] = 15] = "StreamingSrcErrRead";
|
|
40
|
-
/*
|
|
40
|
+
/* enum_StreamingSrcErr_StreamingSrcErrWrite */
|
|
41
41
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrWrite"] = 16] = "StreamingSrcErrWrite";
|
|
42
|
-
/*
|
|
42
|
+
/* enum_StreamingSrcErr_StreamingSrcErrSeek */
|
|
43
43
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrSeek"] = 17] = "StreamingSrcErrSeek";
|
|
44
|
-
/*
|
|
44
|
+
/* enum_StreamingSrcErr_StreamingSrcErrEof */
|
|
45
45
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrEof"] = 18] = "StreamingSrcErrEof";
|
|
46
|
-
/*
|
|
46
|
+
/* enum_StreamingSrcErr_StreamingSrcErrCodecopen */
|
|
47
47
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrCodecopen"] = 19] = "StreamingSrcErrCodecopen";
|
|
48
|
-
/*
|
|
48
|
+
/* enum_StreamingSrcErr_StreamingSrcErrCodecclose */
|
|
49
49
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrCodecclose"] = 20] = "StreamingSrcErrCodecclose";
|
|
50
|
-
/*
|
|
50
|
+
/* enum_StreamingSrcErr_StreamingSrcErrCodecproc */
|
|
51
51
|
StreamingSrcErr[StreamingSrcErr["StreamingSrcErrCodecproc"] = 21] = "StreamingSrcErrCodecproc";
|
|
52
52
|
})(StreamingSrcErr = exports.StreamingSrcErr || (exports.StreamingSrcErr = {}));
|
|
53
|
-
/*
|
|
53
|
+
/* enum_StreamingSrcState */
|
|
54
54
|
var StreamingSrcState;
|
|
55
55
|
(function (StreamingSrcState) {
|
|
56
|
-
/*
|
|
56
|
+
/* enum_StreamingSrcState_StreamingSrcStateClosed */
|
|
57
57
|
StreamingSrcState[StreamingSrcState["StreamingSrcStateClosed"] = 0] = "StreamingSrcStateClosed";
|
|
58
|
-
/*
|
|
58
|
+
/* enum_StreamingSrcState_StreamingSrcStateOpening */
|
|
59
59
|
StreamingSrcState[StreamingSrcState["StreamingSrcStateOpening"] = 1] = "StreamingSrcStateOpening";
|
|
60
|
-
/*
|
|
60
|
+
/* enum_StreamingSrcState_StreamingSrcStateIdle */
|
|
61
61
|
StreamingSrcState[StreamingSrcState["StreamingSrcStateIdle"] = 2] = "StreamingSrcStateIdle";
|
|
62
|
-
/*
|
|
62
|
+
/* enum_StreamingSrcState_StreamingSrcStatePlaying */
|
|
63
63
|
StreamingSrcState[StreamingSrcState["StreamingSrcStatePlaying"] = 3] = "StreamingSrcStatePlaying";
|
|
64
|
-
/*
|
|
64
|
+
/* enum_StreamingSrcState_StreamingSrcStateSeeking */
|
|
65
65
|
StreamingSrcState[StreamingSrcState["StreamingSrcStateSeeking"] = 4] = "StreamingSrcStateSeeking";
|
|
66
|
-
/*
|
|
66
|
+
/* enum_StreamingSrcState_StreamingSrcStateEof */
|
|
67
67
|
StreamingSrcState[StreamingSrcState["StreamingSrcStateEof"] = 5] = "StreamingSrcStateEof";
|
|
68
|
-
/*
|
|
68
|
+
/* enum_StreamingSrcState_StreamingSrcStateError */
|
|
69
69
|
StreamingSrcState[StreamingSrcState["StreamingSrcStateError"] = 6] = "StreamingSrcStateError";
|
|
70
70
|
})(StreamingSrcState = exports.StreamingSrcState || (exports.StreamingSrcState = {}));
|
|
71
|
-
/*
|
|
71
|
+
/* class_InputSeiData */
|
|
72
72
|
var InputSeiData = /** @class */ (function () {
|
|
73
73
|
function InputSeiData() {
|
|
74
74
|
}
|
|
@@ -15,69 +15,69 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.IMusicContentCenter = exports.IMusicPlayer = exports.MusicContentCenterConfiguration = exports.MusicCollection = exports.Music = exports.ClimaxSegment = exports.MvProperty = exports.MusicChartCollection = exports.MusicCacheInfo = exports.MusicCacheStatusType = exports.MusicChartInfo = exports.
|
|
18
|
+
exports.IMusicContentCenter = exports.IMusicPlayer = exports.MusicContentCenterConfiguration = exports.MusicCollection = exports.Music = exports.ClimaxSegment = exports.MvProperty = exports.MusicChartCollection = exports.MusicCacheInfo = exports.MusicCacheStatusType = exports.MusicChartInfo = exports.MusicContentCenterStateReason = exports.PreloadState = void 0;
|
|
19
19
|
require("./extension/IAgoraMusicContentCenterExtension");
|
|
20
20
|
var IAgoraMediaPlayer_1 = require("./IAgoraMediaPlayer");
|
|
21
21
|
/**
|
|
22
22
|
* @ignore
|
|
23
23
|
*/
|
|
24
|
-
var
|
|
25
|
-
(function (
|
|
24
|
+
var PreloadState;
|
|
25
|
+
(function (PreloadState) {
|
|
26
26
|
/**
|
|
27
27
|
* @ignore
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
PreloadState[PreloadState["KPreloadStateCompleted"] = 0] = "KPreloadStateCompleted";
|
|
30
30
|
/**
|
|
31
31
|
* @ignore
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
PreloadState[PreloadState["KPreloadStateFailed"] = 1] = "KPreloadStateFailed";
|
|
34
34
|
/**
|
|
35
35
|
* @ignore
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
PreloadState[PreloadState["KPreloadStatePreloading"] = 2] = "KPreloadStatePreloading";
|
|
38
38
|
/**
|
|
39
39
|
* @ignore
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
})(
|
|
41
|
+
PreloadState[PreloadState["KPreloadStateRemoved"] = 3] = "KPreloadStateRemoved";
|
|
42
|
+
})(PreloadState = exports.PreloadState || (exports.PreloadState = {}));
|
|
43
43
|
/**
|
|
44
44
|
* @ignore
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
47
|
-
(function (
|
|
46
|
+
var MusicContentCenterStateReason;
|
|
47
|
+
(function (MusicContentCenterStateReason) {
|
|
48
48
|
/**
|
|
49
49
|
* @ignore
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonOk"] = 0] = "KMusicContentCenterReasonOk";
|
|
52
52
|
/**
|
|
53
53
|
* @ignore
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonError"] = 1] = "KMusicContentCenterReasonError";
|
|
56
56
|
/**
|
|
57
57
|
* @ignore
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonGateway"] = 2] = "KMusicContentCenterReasonGateway";
|
|
60
60
|
/**
|
|
61
61
|
* @ignore
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonPermissionAndResource"] = 3] = "KMusicContentCenterReasonPermissionAndResource";
|
|
64
64
|
/**
|
|
65
65
|
* @ignore
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonInternalDataParse"] = 4] = "KMusicContentCenterReasonInternalDataParse";
|
|
68
68
|
/**
|
|
69
69
|
* @ignore
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonMusicLoading"] = 5] = "KMusicContentCenterReasonMusicLoading";
|
|
72
72
|
/**
|
|
73
73
|
* @ignore
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonMusicDecryption"] = 6] = "KMusicContentCenterReasonMusicDecryption";
|
|
76
76
|
/**
|
|
77
77
|
* @ignore
|
|
78
78
|
*/
|
|
79
|
-
|
|
80
|
-
})(
|
|
79
|
+
MusicContentCenterStateReason[MusicContentCenterStateReason["KMusicContentCenterReasonHttpInternalError"] = 7] = "KMusicContentCenterReasonHttpInternalError";
|
|
80
|
+
})(MusicContentCenterStateReason = exports.MusicContentCenterStateReason || (exports.MusicContentCenterStateReason = {}));
|
|
81
81
|
/**
|
|
82
82
|
* @ignore
|
|
83
83
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgoraRhythmPlayerConfig = exports.
|
|
3
|
+
exports.AgoraRhythmPlayerConfig = exports.RhythmPlayerReason = exports.RhythmPlayerStateType = void 0;
|
|
4
4
|
require("./extension/IAgoraRhythmPlayerExtension");
|
|
5
5
|
/**
|
|
6
6
|
* @ignore
|
|
@@ -31,29 +31,29 @@ var RhythmPlayerStateType;
|
|
|
31
31
|
/**
|
|
32
32
|
* @ignore
|
|
33
33
|
*/
|
|
34
|
-
var
|
|
35
|
-
(function (
|
|
34
|
+
var RhythmPlayerReason;
|
|
35
|
+
(function (RhythmPlayerReason) {
|
|
36
36
|
/**
|
|
37
37
|
* @ignore
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonOk"] = 0] = "RhythmPlayerReasonOk";
|
|
40
40
|
/**
|
|
41
41
|
* @ignore
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonFailed"] = 1] = "RhythmPlayerReasonFailed";
|
|
44
44
|
/**
|
|
45
45
|
* @ignore
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonCanNotOpen"] = 801] = "RhythmPlayerReasonCanNotOpen";
|
|
48
48
|
/**
|
|
49
49
|
* @ignore
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonCanNotPlay"] = 802] = "RhythmPlayerReasonCanNotPlay";
|
|
52
52
|
/**
|
|
53
53
|
* @ignore
|
|
54
54
|
*/
|
|
55
|
-
|
|
56
|
-
})(
|
|
55
|
+
RhythmPlayerReason[RhythmPlayerReason["RhythmPlayerReasonFileOverDurationLimit"] = 803] = "RhythmPlayerReasonFileOverDurationLimit";
|
|
56
|
+
})(RhythmPlayerReason = exports.RhythmPlayerReason || (exports.RhythmPlayerReason = {}));
|
|
57
57
|
/**
|
|
58
58
|
* The metronome configuration.
|
|
59
59
|
*/
|