agora-electron-sdk 4.3.2 → 4.4.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.
Files changed (100) hide show
  1. package/gulpfile.js +3 -1
  2. package/js/AgoraSdk.js +4 -4
  3. package/js/Private/AgoraBase.js +367 -326
  4. package/js/Private/AgoraMediaBase.js +265 -76
  5. package/js/Private/AgoraMediaPlayerTypes.js +12 -30
  6. package/js/Private/IAgoraH265Transcoder.js +2 -5
  7. package/js/Private/IAgoraLog.js +2 -5
  8. package/js/Private/IAgoraMediaEngine.js +2 -5
  9. package/js/Private/IAgoraMediaPlayer.js +4 -10
  10. package/js/Private/IAgoraMediaRecorder.js +2 -5
  11. package/js/Private/IAgoraMediaStreamingSource.js +2 -5
  12. package/js/Private/IAgoraMusicContentCenter.js +21 -68
  13. package/js/Private/IAgoraRhythmPlayer.js +2 -5
  14. package/js/Private/IAgoraRtcEngine.js +76 -130
  15. package/js/Private/IAgoraRtcEngineEx.js +5 -28
  16. package/js/Private/IAgoraSpatialAudio.js +6 -15
  17. package/js/Private/IAudioDeviceManager.js +2 -5
  18. package/js/Private/impl/AgoraMediaBaseImpl.js +11 -14
  19. package/js/Private/impl/IAgoraH265TranscoderImpl.js +43 -46
  20. package/js/Private/impl/IAgoraMediaEngineImpl.js +155 -172
  21. package/js/Private/impl/IAgoraMediaPlayerImpl.js +534 -546
  22. package/js/Private/impl/IAgoraMediaRecorderImpl.js +26 -29
  23. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +218 -251
  24. package/js/Private/impl/IAgoraRtcEngineExImpl.js +434 -436
  25. package/js/Private/impl/IAgoraRtcEngineImpl.js +2445 -2423
  26. package/js/Private/impl/IAgoraSpatialAudioImpl.js +167 -170
  27. package/js/Private/impl/IAudioDeviceManagerImpl.js +232 -235
  28. package/js/Private/internal/AgoraH265TranscoderInternal.js +33 -57
  29. package/js/Private/internal/AgoraMediaBaseInternal.js +9 -28
  30. package/js/Private/internal/AudioDeviceManagerInternal.js +24 -44
  31. package/js/Private/internal/IrisApiEngine.js +94 -145
  32. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +3 -23
  33. package/js/Private/internal/MediaEngineInternal.js +69 -94
  34. package/js/Private/internal/MediaPlayerInternal.js +105 -125
  35. package/js/Private/internal/MediaRecorderInternal.js +37 -64
  36. package/js/Private/internal/MusicContentCenterInternal.js +92 -129
  37. package/js/Private/internal/RtcEngineExInternal.js +213 -243
  38. package/js/Private/ti/AgoraBase-ti.js +2 -2
  39. package/js/Private/ti/AgoraMediaBase-ti.js +2 -2
  40. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
  41. package/js/Private/ti/IAgoraH265Transcoder-ti.js +2 -2
  42. package/js/Private/ti/IAgoraLog-ti.js +1 -1
  43. package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
  44. package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
  45. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
  46. package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
  47. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
  48. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +2 -2
  49. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
  50. package/js/Private/ti/IAgoraRtcEngine-ti.js +7 -7
  51. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
  52. package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
  53. package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
  54. package/js/Renderer/AgoraView.js +100 -145
  55. package/js/Renderer/IRenderer.js +43 -53
  56. package/js/Renderer/IRendererManager.js +106 -132
  57. package/js/Renderer/RendererCache.js +63 -96
  58. package/js/Renderer/RendererManager.js +35 -69
  59. package/js/Renderer/WebGLRenderer/index.js +77 -106
  60. package/js/Renderer/YUVCanvasRenderer/index.js +18 -40
  61. package/js/Utils.js +45 -64
  62. package/package.json +9 -7
  63. package/scripts/checkElectron.js +41 -0
  64. package/scripts/downloadPrebuild.js +56 -24
  65. package/scripts/synclib.js +6 -6
  66. package/ts/Private/AgoraBase.ts +269 -4
  67. package/ts/Private/AgoraMediaBase.ts +343 -1
  68. package/ts/Private/IAgoraMediaEngine.ts +3 -3
  69. package/ts/Private/IAgoraRtcEngine.ts +130 -119
  70. package/ts/Private/IAgoraRtcEngineEx.ts +14 -9
  71. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
  72. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -61
  73. package/ts/Private/internal/IrisApiEngine.ts +3 -7
  74. package/ts/Private/internal/MediaEngineInternal.ts +0 -1
  75. package/ts/Private/internal/RtcEngineExInternal.ts +8 -4
  76. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
  77. package/ts/Renderer/IRenderer.ts +1 -2
  78. package/ts/Renderer/IRendererManager.ts +21 -12
  79. package/ts/Utils.ts +15 -0
  80. package/types/Private/AgoraBase.d.ts +264 -8
  81. package/types/Private/AgoraBase.d.ts.map +1 -1
  82. package/types/Private/AgoraMediaBase.d.ts +336 -1
  83. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  84. package/types/Private/IAgoraMediaEngine.d.ts +3 -3
  85. package/types/Private/IAgoraRtcEngine.d.ts +106 -116
  86. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  87. package/types/Private/IAgoraRtcEngineEx.d.ts +10 -10
  88. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  89. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +3 -1
  90. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
  91. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +13 -5
  92. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  93. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
  94. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
  95. package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
  96. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  97. package/types/Renderer/IRenderer.d.ts.map +1 -1
  98. package/types/Renderer/IRendererManager.d.ts.map +1 -1
  99. package/types/Utils.d.ts +4 -0
  100. package/types/Utils.d.ts.map +1 -1
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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.Hdr10MetadataInfo = exports.ColorSpace = exports.TransferID = exports.MatrixID = exports.RangeID = exports.PrimaryID = 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 = exports.ExtensionContext = void 0;
4
4
  require("./extension/AgoraMediaBaseExtension");
5
+ /**
6
+ * @ignore
7
+ */
8
+ class ExtensionContext {
9
+ }
10
+ exports.ExtensionContext = ExtensionContext;
5
11
  /**
6
12
  * The type of the video source.
7
13
  */
@@ -151,11 +157,8 @@ var BytesPerSample;
151
157
  /**
152
158
  * @ignore
153
159
  */
154
- var AudioParameters = /** @class */ (function () {
155
- function AudioParameters() {
156
- }
157
- return AudioParameters;
158
- }());
160
+ class AudioParameters {
161
+ }
159
162
  exports.AudioParameters = AudioParameters;
160
163
  /**
161
164
  * The use mode of the audio data.
@@ -280,47 +283,32 @@ var ContentInspectType;
280
283
  /**
281
284
  * A ContentInspectModule structure used to configure the frequency of video screenshot and upload.
282
285
  */
283
- var ContentInspectModule = /** @class */ (function () {
284
- function ContentInspectModule() {
285
- }
286
- return ContentInspectModule;
287
- }());
286
+ class ContentInspectModule {
287
+ }
288
288
  exports.ContentInspectModule = ContentInspectModule;
289
289
  /**
290
290
  * Configuration of video screenshot and upload.
291
291
  */
292
- var ContentInspectConfig = /** @class */ (function () {
293
- function ContentInspectConfig() {
294
- }
295
- return ContentInspectConfig;
296
- }());
292
+ class ContentInspectConfig {
293
+ }
297
294
  exports.ContentInspectConfig = ContentInspectConfig;
298
295
  /**
299
296
  * @ignore
300
297
  */
301
- var PacketOptions = /** @class */ (function () {
302
- function PacketOptions() {
303
- }
304
- return PacketOptions;
305
- }());
298
+ class PacketOptions {
299
+ }
306
300
  exports.PacketOptions = PacketOptions;
307
301
  /**
308
302
  * @ignore
309
303
  */
310
- var AudioEncodedFrameInfo = /** @class */ (function () {
311
- function AudioEncodedFrameInfo() {
312
- }
313
- return AudioEncodedFrameInfo;
314
- }());
304
+ class AudioEncodedFrameInfo {
305
+ }
315
306
  exports.AudioEncodedFrameInfo = AudioEncodedFrameInfo;
316
307
  /**
317
308
  * The parameters of the audio frame in PCM format.
318
309
  */
319
- var AudioPcmFrame = /** @class */ (function () {
320
- function AudioPcmFrame() {
321
- }
322
- return AudioPcmFrame;
323
- }());
310
+ class AudioPcmFrame {
311
+ }
324
312
  exports.AudioPcmFrame = AudioPcmFrame;
325
313
  /**
326
314
  * The channel mode.
@@ -393,6 +381,10 @@ var VideoPixelFormat;
393
381
  * @ignore
394
382
  */
395
383
  VideoPixelFormat[VideoPixelFormat["VideoCvpixelBgra"] = 14] = "VideoCvpixelBgra";
384
+ /**
385
+ * @ignore
386
+ */
387
+ VideoPixelFormat[VideoPixelFormat["VideoCvpixelP010"] = 15] = "VideoCvpixelP010";
396
388
  /**
397
389
  * 16: The format is I422.
398
390
  */
@@ -455,12 +447,233 @@ var MetaInfoKey;
455
447
  /**
456
448
  * @ignore
457
449
  */
458
- var IVideoFrameMetaInfo = /** @class */ (function () {
459
- function IVideoFrameMetaInfo() {
460
- }
461
- return IVideoFrameMetaInfo;
462
- }());
450
+ class IVideoFrameMetaInfo {
451
+ }
463
452
  exports.IVideoFrameMetaInfo = IVideoFrameMetaInfo;
453
+ /**
454
+ * @ignore
455
+ */
456
+ var PrimaryID;
457
+ (function (PrimaryID) {
458
+ /**
459
+ * @ignore
460
+ */
461
+ PrimaryID[PrimaryID["PrimaryidBt709"] = 1] = "PrimaryidBt709";
462
+ /**
463
+ * @ignore
464
+ */
465
+ PrimaryID[PrimaryID["PrimaryidUnspecified"] = 2] = "PrimaryidUnspecified";
466
+ /**
467
+ * @ignore
468
+ */
469
+ PrimaryID[PrimaryID["PrimaryidBt470m"] = 4] = "PrimaryidBt470m";
470
+ /**
471
+ * @ignore
472
+ */
473
+ PrimaryID[PrimaryID["PrimaryidBt470bg"] = 5] = "PrimaryidBt470bg";
474
+ /**
475
+ * @ignore
476
+ */
477
+ PrimaryID[PrimaryID["PrimaryidSmpte170m"] = 6] = "PrimaryidSmpte170m";
478
+ /**
479
+ * @ignore
480
+ */
481
+ PrimaryID[PrimaryID["PrimaryidSmpte240m"] = 7] = "PrimaryidSmpte240m";
482
+ /**
483
+ * @ignore
484
+ */
485
+ PrimaryID[PrimaryID["PrimaryidFilm"] = 8] = "PrimaryidFilm";
486
+ /**
487
+ * @ignore
488
+ */
489
+ PrimaryID[PrimaryID["PrimaryidBt2020"] = 9] = "PrimaryidBt2020";
490
+ /**
491
+ * @ignore
492
+ */
493
+ PrimaryID[PrimaryID["PrimaryidSmptest428"] = 10] = "PrimaryidSmptest428";
494
+ /**
495
+ * @ignore
496
+ */
497
+ PrimaryID[PrimaryID["PrimaryidSmptest431"] = 11] = "PrimaryidSmptest431";
498
+ /**
499
+ * @ignore
500
+ */
501
+ PrimaryID[PrimaryID["PrimaryidSmptest432"] = 12] = "PrimaryidSmptest432";
502
+ /**
503
+ * @ignore
504
+ */
505
+ PrimaryID[PrimaryID["PrimaryidJedecp22"] = 22] = "PrimaryidJedecp22";
506
+ })(PrimaryID = exports.PrimaryID || (exports.PrimaryID = {}));
507
+ /**
508
+ * @ignore
509
+ */
510
+ var RangeID;
511
+ (function (RangeID) {
512
+ /**
513
+ * @ignore
514
+ */
515
+ RangeID[RangeID["RangeidInvalid"] = 0] = "RangeidInvalid";
516
+ /**
517
+ * @ignore
518
+ */
519
+ RangeID[RangeID["RangeidLimited"] = 1] = "RangeidLimited";
520
+ /**
521
+ * @ignore
522
+ */
523
+ RangeID[RangeID["RangeidFull"] = 2] = "RangeidFull";
524
+ /**
525
+ * @ignore
526
+ */
527
+ RangeID[RangeID["RangeidDerived"] = 3] = "RangeidDerived";
528
+ })(RangeID = exports.RangeID || (exports.RangeID = {}));
529
+ /**
530
+ * @ignore
531
+ */
532
+ var MatrixID;
533
+ (function (MatrixID) {
534
+ /**
535
+ * @ignore
536
+ */
537
+ MatrixID[MatrixID["MatrixidRgb"] = 0] = "MatrixidRgb";
538
+ /**
539
+ * @ignore
540
+ */
541
+ MatrixID[MatrixID["MatrixidBt709"] = 1] = "MatrixidBt709";
542
+ /**
543
+ * @ignore
544
+ */
545
+ MatrixID[MatrixID["MatrixidUnspecified"] = 2] = "MatrixidUnspecified";
546
+ /**
547
+ * @ignore
548
+ */
549
+ MatrixID[MatrixID["MatrixidFcc"] = 4] = "MatrixidFcc";
550
+ /**
551
+ * @ignore
552
+ */
553
+ MatrixID[MatrixID["MatrixidBt470bg"] = 5] = "MatrixidBt470bg";
554
+ /**
555
+ * @ignore
556
+ */
557
+ MatrixID[MatrixID["MatrixidSmpte170m"] = 6] = "MatrixidSmpte170m";
558
+ /**
559
+ * @ignore
560
+ */
561
+ MatrixID[MatrixID["MatrixidSmpte240m"] = 7] = "MatrixidSmpte240m";
562
+ /**
563
+ * @ignore
564
+ */
565
+ MatrixID[MatrixID["MatrixidYcocg"] = 8] = "MatrixidYcocg";
566
+ /**
567
+ * @ignore
568
+ */
569
+ MatrixID[MatrixID["MatrixidBt2020Ncl"] = 9] = "MatrixidBt2020Ncl";
570
+ /**
571
+ * @ignore
572
+ */
573
+ MatrixID[MatrixID["MatrixidBt2020Cl"] = 10] = "MatrixidBt2020Cl";
574
+ /**
575
+ * @ignore
576
+ */
577
+ MatrixID[MatrixID["MatrixidSmpte2085"] = 11] = "MatrixidSmpte2085";
578
+ /**
579
+ * @ignore
580
+ */
581
+ MatrixID[MatrixID["MatrixidCdncls"] = 12] = "MatrixidCdncls";
582
+ /**
583
+ * @ignore
584
+ */
585
+ MatrixID[MatrixID["MatrixidCdcls"] = 13] = "MatrixidCdcls";
586
+ /**
587
+ * @ignore
588
+ */
589
+ MatrixID[MatrixID["MatrixidBt2100Ictcp"] = 14] = "MatrixidBt2100Ictcp";
590
+ })(MatrixID = exports.MatrixID || (exports.MatrixID = {}));
591
+ /**
592
+ * @ignore
593
+ */
594
+ var TransferID;
595
+ (function (TransferID) {
596
+ /**
597
+ * @ignore
598
+ */
599
+ TransferID[TransferID["TransferidBt709"] = 1] = "TransferidBt709";
600
+ /**
601
+ * @ignore
602
+ */
603
+ TransferID[TransferID["TransferidUnspecified"] = 2] = "TransferidUnspecified";
604
+ /**
605
+ * @ignore
606
+ */
607
+ TransferID[TransferID["TransferidGamma22"] = 4] = "TransferidGamma22";
608
+ /**
609
+ * @ignore
610
+ */
611
+ TransferID[TransferID["TransferidGamma28"] = 5] = "TransferidGamma28";
612
+ /**
613
+ * @ignore
614
+ */
615
+ TransferID[TransferID["TransferidSmpte170m"] = 6] = "TransferidSmpte170m";
616
+ /**
617
+ * @ignore
618
+ */
619
+ TransferID[TransferID["TransferidSmpte240m"] = 7] = "TransferidSmpte240m";
620
+ /**
621
+ * @ignore
622
+ */
623
+ TransferID[TransferID["TransferidLinear"] = 8] = "TransferidLinear";
624
+ /**
625
+ * @ignore
626
+ */
627
+ TransferID[TransferID["TransferidLog"] = 9] = "TransferidLog";
628
+ /**
629
+ * @ignore
630
+ */
631
+ TransferID[TransferID["TransferidLogSqrt"] = 10] = "TransferidLogSqrt";
632
+ /**
633
+ * @ignore
634
+ */
635
+ TransferID[TransferID["TransferidIec6196624"] = 11] = "TransferidIec6196624";
636
+ /**
637
+ * @ignore
638
+ */
639
+ TransferID[TransferID["TransferidBt1361Ecg"] = 12] = "TransferidBt1361Ecg";
640
+ /**
641
+ * @ignore
642
+ */
643
+ TransferID[TransferID["TransferidIec6196621"] = 13] = "TransferidIec6196621";
644
+ /**
645
+ * @ignore
646
+ */
647
+ TransferID[TransferID["TransferidBt202010"] = 14] = "TransferidBt202010";
648
+ /**
649
+ * @ignore
650
+ */
651
+ TransferID[TransferID["TransferidBt202012"] = 15] = "TransferidBt202012";
652
+ /**
653
+ * @ignore
654
+ */
655
+ TransferID[TransferID["TransferidSmptest2084"] = 16] = "TransferidSmptest2084";
656
+ /**
657
+ * @ignore
658
+ */
659
+ TransferID[TransferID["TransferidSmptest428"] = 17] = "TransferidSmptest428";
660
+ /**
661
+ * @ignore
662
+ */
663
+ TransferID[TransferID["TransferidAribStdB67"] = 18] = "TransferidAribStdB67";
664
+ })(TransferID = exports.TransferID || (exports.TransferID = {}));
665
+ /**
666
+ * @ignore
667
+ */
668
+ class ColorSpace {
669
+ }
670
+ exports.ColorSpace = ColorSpace;
671
+ /**
672
+ * @ignore
673
+ */
674
+ class Hdr10MetadataInfo {
675
+ }
676
+ exports.Hdr10MetadataInfo = Hdr10MetadataInfo;
464
677
  /**
465
678
  * @ignore
466
679
  */
@@ -496,22 +709,16 @@ var VideoBufferType;
496
709
  /**
497
710
  * The external video frame.
498
711
  */
499
- var ExternalVideoFrame = /** @class */ (function () {
500
- function ExternalVideoFrame() {
501
- }
502
- return ExternalVideoFrame;
503
- }());
712
+ class ExternalVideoFrame {
713
+ }
504
714
  exports.ExternalVideoFrame = ExternalVideoFrame;
505
715
  /**
506
716
  * Configurations of the video frame.
507
717
  *
508
718
  * Note that the buffer provides a pointer to a pointer. This interface cannot modify the pointer of the buffer, but it can modify the content of the buffer.
509
719
  */
510
- var VideoFrame = /** @class */ (function () {
511
- function VideoFrame() {
512
- }
513
- return VideoFrame;
514
- }());
720
+ class VideoFrame {
721
+ }
515
722
  exports.VideoFrame = VideoFrame;
516
723
  /**
517
724
  * @ignore
@@ -568,11 +775,8 @@ var AudioFrameType;
568
775
  /**
569
776
  * Raw audio data.
570
777
  */
571
- var AudioFrame = /** @class */ (function () {
572
- function AudioFrame() {
573
- }
574
- return AudioFrame;
575
- }());
778
+ class AudioFrame {
779
+ }
576
780
  exports.AudioFrame = AudioFrame;
577
781
  /**
578
782
  * @ignore
@@ -611,29 +815,20 @@ var AudioFramePosition;
611
815
  * The SDK calculates the sampling interval through the samplesPerCall, sampleRate, and channel parameters in AudioParams, and triggers the onRecordAudioFrame, onPlaybackAudioFrame, onMixedAudioFrame, and onEarMonitoringAudioFrame callbacks according to the sampling interval. Sample interval (sec) = samplePerCall /(sampleRate × channel).
612
816
  * Ensure that the sample interval ≥ 0.01 (s).
613
817
  */
614
- var AudioParams = /** @class */ (function () {
615
- function AudioParams() {
616
- }
617
- return AudioParams;
618
- }());
818
+ class AudioParams {
819
+ }
619
820
  exports.AudioParams = AudioParams;
620
821
  /**
621
822
  * The audio spectrum data.
622
823
  */
623
- var AudioSpectrumData = /** @class */ (function () {
624
- function AudioSpectrumData() {
625
- }
626
- return AudioSpectrumData;
627
- }());
824
+ class AudioSpectrumData {
825
+ }
628
826
  exports.AudioSpectrumData = AudioSpectrumData;
629
827
  /**
630
828
  * Audio spectrum information of the remote user.
631
829
  */
632
- var UserAudioSpectrumInfo = /** @class */ (function () {
633
- function UserAudioSpectrumInfo() {
634
- }
635
- return UserAudioSpectrumInfo;
636
- }());
830
+ class UserAudioSpectrumInfo {
831
+ }
637
832
  exports.UserAudioSpectrumInfo = UserAudioSpectrumInfo;
638
833
  /**
639
834
  * The process mode of the video frame:
@@ -738,18 +933,12 @@ var RecorderReasonCode;
738
933
  /**
739
934
  * @ignore
740
935
  */
741
- var MediaRecorderConfiguration = /** @class */ (function () {
742
- function MediaRecorderConfiguration() {
743
- }
744
- return MediaRecorderConfiguration;
745
- }());
936
+ class MediaRecorderConfiguration {
937
+ }
746
938
  exports.MediaRecorderConfiguration = MediaRecorderConfiguration;
747
939
  /**
748
940
  * @ignore
749
941
  */
750
- var RecorderInfo = /** @class */ (function () {
751
- function RecorderInfo() {
752
- }
753
- return RecorderInfo;
754
- }());
942
+ class RecorderInfo {
943
+ }
755
944
  exports.RecorderInfo = RecorderInfo;
@@ -267,20 +267,14 @@ var PlayerPreloadEvent;
267
267
  /**
268
268
  * The detailed information of the media stream.
269
269
  */
270
- var PlayerStreamInfo = /** @class */ (function () {
271
- function PlayerStreamInfo() {
272
- }
273
- return PlayerStreamInfo;
274
- }());
270
+ class PlayerStreamInfo {
271
+ }
275
272
  exports.PlayerStreamInfo = PlayerStreamInfo;
276
273
  /**
277
274
  * Information about the video bitrate of the media resource being played.
278
275
  */
279
- var SrcInfo = /** @class */ (function () {
280
- function SrcInfo() {
281
- }
282
- return SrcInfo;
283
- }());
276
+ class SrcInfo {
277
+ }
284
278
  exports.SrcInfo = SrcInfo;
285
279
  /**
286
280
  * The type of media metadata.
@@ -299,36 +293,24 @@ var MediaPlayerMetadataType;
299
293
  /**
300
294
  * Statistics about the media files being cached.
301
295
  */
302
- var CacheStatistics = /** @class */ (function () {
303
- function CacheStatistics() {
304
- }
305
- return CacheStatistics;
306
- }());
296
+ class CacheStatistics {
297
+ }
307
298
  exports.CacheStatistics = CacheStatistics;
308
299
  /**
309
300
  * The information of the media file being played.
310
301
  */
311
- var PlayerPlaybackStats = /** @class */ (function () {
312
- function PlayerPlaybackStats() {
313
- }
314
- return PlayerPlaybackStats;
315
- }());
302
+ class PlayerPlaybackStats {
303
+ }
316
304
  exports.PlayerPlaybackStats = PlayerPlaybackStats;
317
305
  /**
318
306
  * Information related to the media player.
319
307
  */
320
- var PlayerUpdatedInfo = /** @class */ (function () {
321
- function PlayerUpdatedInfo() {
322
- }
323
- return PlayerUpdatedInfo;
324
- }());
308
+ class PlayerUpdatedInfo {
309
+ }
325
310
  exports.PlayerUpdatedInfo = PlayerUpdatedInfo;
326
311
  /**
327
312
  * Information related to the media file to be played and the playback scenario configurations.
328
313
  */
329
- var MediaSource = /** @class */ (function () {
330
- function MediaSource() {
331
- }
332
- return MediaSource;
333
- }());
314
+ class MediaSource {
315
+ }
334
316
  exports.MediaSource = MediaSource;
@@ -31,9 +31,6 @@ var H265TranscodeResult;
31
31
  H265TranscodeResult[H265TranscodeResult["H265TranscodeResultServiceUnavailable"] = 10] = "H265TranscodeResultServiceUnavailable";
32
32
  })(H265TranscodeResult = exports.H265TranscodeResult || (exports.H265TranscodeResult = {}));
33
33
  /* class_IH265Transcoder */
34
- var IH265Transcoder = /** @class */ (function () {
35
- function IH265Transcoder() {
36
- }
37
- return IH265Transcoder;
38
- }());
34
+ class IH265Transcoder {
35
+ }
39
36
  exports.IH265Transcoder = IH265Transcoder;
@@ -69,9 +69,6 @@ var LogFilterType;
69
69
  /**
70
70
  * Configuration of Agora SDK log files.
71
71
  */
72
- var LogConfig = /** @class */ (function () {
73
- function LogConfig() {
74
- }
75
- return LogConfig;
76
- }());
72
+ class LogConfig {
73
+ }
77
74
  exports.LogConfig = LogConfig;
@@ -27,9 +27,6 @@ var AudioMixingDualMonoMode;
27
27
  /**
28
28
  * The IMediaEngine class.
29
29
  */
30
- var IMediaEngine = /** @class */ (function () {
31
- function IMediaEngine() {
32
- }
33
- return IMediaEngine;
34
- }());
30
+ class IMediaEngine {
31
+ }
35
32
  exports.IMediaEngine = IMediaEngine;
@@ -5,18 +5,12 @@ require("./extension/IAgoraMediaPlayerExtension");
5
5
  /**
6
6
  * This class provides media player functions and supports multiple instances.
7
7
  */
8
- var IMediaPlayer = /** @class */ (function () {
9
- function IMediaPlayer() {
10
- }
11
- return IMediaPlayer;
12
- }());
8
+ class IMediaPlayer {
9
+ }
13
10
  exports.IMediaPlayer = IMediaPlayer;
14
11
  /**
15
12
  * This class provides methods to manage cached media files.
16
13
  */
17
- var IMediaPlayerCacheManager = /** @class */ (function () {
18
- function IMediaPlayerCacheManager() {
19
- }
20
- return IMediaPlayerCacheManager;
21
- }());
14
+ class IMediaPlayerCacheManager {
15
+ }
22
16
  exports.IMediaPlayerCacheManager = IMediaPlayerCacheManager;
@@ -5,9 +5,6 @@ require("./extension/IAgoraMediaRecorderExtension");
5
5
  /**
6
6
  * @ignore
7
7
  */
8
- var IMediaRecorder = /** @class */ (function () {
9
- function IMediaRecorder() {
10
- }
11
- return IMediaRecorder;
12
- }());
8
+ class IMediaRecorder {
9
+ }
13
10
  exports.IMediaRecorder = IMediaRecorder;
@@ -69,9 +69,6 @@ var StreamingSrcState;
69
69
  StreamingSrcState[StreamingSrcState["StreamingSrcStateError"] = 6] = "StreamingSrcStateError";
70
70
  })(StreamingSrcState = exports.StreamingSrcState || (exports.StreamingSrcState = {}));
71
71
  /* class_InputSeiData */
72
- var InputSeiData = /** @class */ (function () {
73
- function InputSeiData() {
74
- }
75
- return InputSeiData;
76
- }());
72
+ class InputSeiData {
73
+ }
77
74
  exports.InputSeiData = InputSeiData;