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,112 +1,91 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.IMusicContentCenterImpl = exports.IMusicPlayerImpl = exports.processIMusicContentCenterEventHandler = exports.MusicCollectionImpl = exports.MusicChartCollectionImpl = void 0;
19
- var IAgoraMediaPlayerImpl_1 = require("./IAgoraMediaPlayerImpl");
4
+ const IAgoraMediaPlayerImpl_1 = require("./IAgoraMediaPlayerImpl");
20
5
  // @ts-ignore
21
- var MusicChartCollectionImpl = /** @class */ (function () {
22
- function MusicChartCollectionImpl() {
23
- }
24
- MusicChartCollectionImpl.prototype.getCount = function () {
25
- var apiType = this.getApiTypeFromGetCount();
26
- var jsonParams = {};
27
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
6
+ class MusicChartCollectionImpl {
7
+ getCount() {
8
+ const apiType = this.getApiTypeFromGetCount();
9
+ const jsonParams = {};
10
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
28
11
  return jsonResults.result;
29
- };
30
- MusicChartCollectionImpl.prototype.getApiTypeFromGetCount = function () {
12
+ }
13
+ getApiTypeFromGetCount() {
31
14
  return 'MusicChartCollection_getCount';
32
- };
33
- MusicChartCollectionImpl.prototype.get = function (index) {
34
- var apiType = this.getApiTypeFromGet(index);
35
- var jsonParams = {
15
+ }
16
+ get(index) {
17
+ const apiType = this.getApiTypeFromGet(index);
18
+ const jsonParams = {
36
19
  index: index,
37
- toJSON: function () {
20
+ toJSON: () => {
38
21
  return {
39
22
  index: index,
40
23
  };
41
24
  },
42
25
  };
43
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
26
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
44
27
  return jsonResults.result;
45
- };
46
- MusicChartCollectionImpl.prototype.getApiTypeFromGet = function (index) {
28
+ }
29
+ getApiTypeFromGet(index) {
47
30
  return 'MusicChartCollection_get_46f8ab7';
48
- };
49
- return MusicChartCollectionImpl;
50
- }());
31
+ }
32
+ }
51
33
  exports.MusicChartCollectionImpl = MusicChartCollectionImpl;
52
34
  // @ts-ignore
53
- var MusicCollectionImpl = /** @class */ (function () {
54
- function MusicCollectionImpl() {
55
- }
56
- MusicCollectionImpl.prototype.getCount = function () {
57
- var apiType = this.getApiTypeFromGetCount();
58
- var jsonParams = {};
59
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
35
+ class MusicCollectionImpl {
36
+ getCount() {
37
+ const apiType = this.getApiTypeFromGetCount();
38
+ const jsonParams = {};
39
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
60
40
  return jsonResults.result;
61
- };
62
- MusicCollectionImpl.prototype.getApiTypeFromGetCount = function () {
41
+ }
42
+ getApiTypeFromGetCount() {
63
43
  return 'MusicCollection_getCount';
64
- };
65
- MusicCollectionImpl.prototype.getTotal = function () {
66
- var apiType = this.getApiTypeFromGetTotal();
67
- var jsonParams = {};
68
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
44
+ }
45
+ getTotal() {
46
+ const apiType = this.getApiTypeFromGetTotal();
47
+ const jsonParams = {};
48
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
69
49
  return jsonResults.result;
70
- };
71
- MusicCollectionImpl.prototype.getApiTypeFromGetTotal = function () {
50
+ }
51
+ getApiTypeFromGetTotal() {
72
52
  return 'MusicCollection_getTotal';
73
- };
74
- MusicCollectionImpl.prototype.getPage = function () {
75
- var apiType = this.getApiTypeFromGetPage();
76
- var jsonParams = {};
77
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
53
+ }
54
+ getPage() {
55
+ const apiType = this.getApiTypeFromGetPage();
56
+ const jsonParams = {};
57
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
78
58
  return jsonResults.result;
79
- };
80
- MusicCollectionImpl.prototype.getApiTypeFromGetPage = function () {
59
+ }
60
+ getApiTypeFromGetPage() {
81
61
  return 'MusicCollection_getPage';
82
- };
83
- MusicCollectionImpl.prototype.getPageSize = function () {
84
- var apiType = this.getApiTypeFromGetPageSize();
85
- var jsonParams = {};
86
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
62
+ }
63
+ getPageSize() {
64
+ const apiType = this.getApiTypeFromGetPageSize();
65
+ const jsonParams = {};
66
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
87
67
  return jsonResults.result;
88
- };
89
- MusicCollectionImpl.prototype.getApiTypeFromGetPageSize = function () {
68
+ }
69
+ getApiTypeFromGetPageSize() {
90
70
  return 'MusicCollection_getPageSize';
91
- };
92
- MusicCollectionImpl.prototype.getMusic = function (index) {
93
- var apiType = this.getApiTypeFromGetMusic(index);
94
- var jsonParams = {
71
+ }
72
+ getMusic(index) {
73
+ const apiType = this.getApiTypeFromGetMusic(index);
74
+ const jsonParams = {
95
75
  index: index,
96
- toJSON: function () {
76
+ toJSON: () => {
97
77
  return {
98
78
  index: index,
99
79
  };
100
80
  },
101
81
  };
102
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
82
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
103
83
  return jsonResults.result;
104
- };
105
- MusicCollectionImpl.prototype.getApiTypeFromGetMusic = function (index) {
84
+ }
85
+ getApiTypeFromGetMusic(index) {
106
86
  return 'MusicCollection_getMusic_8fcdcef';
107
- };
108
- return MusicCollectionImpl;
109
- }());
87
+ }
88
+ }
110
89
  exports.MusicCollectionImpl = MusicCollectionImpl;
111
90
  function processIMusicContentCenterEventHandler(handler, event, jsonParams) {
112
91
  switch (event) {
@@ -139,158 +118,149 @@ function processIMusicContentCenterEventHandler(handler, event, jsonParams) {
139
118
  }
140
119
  exports.processIMusicContentCenterEventHandler = processIMusicContentCenterEventHandler;
141
120
  // @ts-ignore
142
- var IMusicPlayerImpl = /** @class */ (function (_super) {
143
- __extends(IMusicPlayerImpl, _super);
144
- function IMusicPlayerImpl() {
145
- return _super !== null && _super.apply(this, arguments) || this;
146
- }
147
- IMusicPlayerImpl.prototype.setPlayMode = function (mode) {
148
- var apiType = this.getApiTypeFromSetPlayMode(mode);
149
- var jsonParams = {
121
+ class IMusicPlayerImpl extends IAgoraMediaPlayerImpl_1.IMediaPlayerImpl {
122
+ setPlayMode(mode) {
123
+ const apiType = this.getApiTypeFromSetPlayMode(mode);
124
+ const jsonParams = {
150
125
  mode: mode,
151
- toJSON: function () {
126
+ toJSON: () => {
152
127
  return {
153
128
  mode: mode,
154
129
  };
155
130
  },
156
131
  };
157
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
132
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
158
133
  return jsonResults.result;
159
- };
160
- IMusicPlayerImpl.prototype.getApiTypeFromSetPlayMode = function (mode) {
134
+ }
135
+ getApiTypeFromSetPlayMode(mode) {
161
136
  return 'MusicPlayer_setPlayMode_748bee0';
162
- };
163
- IMusicPlayerImpl.prototype.openWithSongCode = function (songCode, startPos) {
164
- if (startPos === void 0) { startPos = 0; }
165
- var apiType = this.getApiTypeFromOpenWithSongCode(songCode, startPos);
166
- var jsonParams = {
137
+ }
138
+ openWithSongCode(songCode, startPos = 0) {
139
+ const apiType = this.getApiTypeFromOpenWithSongCode(songCode, startPos);
140
+ const jsonParams = {
167
141
  songCode: songCode,
168
142
  startPos: startPos,
169
- toJSON: function () {
143
+ toJSON: () => {
170
144
  return {
171
145
  songCode: songCode,
172
146
  startPos: startPos,
173
147
  };
174
148
  },
175
149
  };
176
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
150
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
177
151
  return jsonResults.result;
178
- };
179
- IMusicPlayerImpl.prototype.getApiTypeFromOpenWithSongCode = function (songCode, startPos) {
180
- if (startPos === void 0) { startPos = 0; }
152
+ }
153
+ getApiTypeFromOpenWithSongCode(songCode, startPos = 0) {
181
154
  return 'MusicPlayer_open_303b92e';
182
- };
183
- return IMusicPlayerImpl;
184
- }(IAgoraMediaPlayerImpl_1.IMediaPlayerImpl));
155
+ }
156
+ }
185
157
  exports.IMusicPlayerImpl = IMusicPlayerImpl;
186
158
  // @ts-ignore
187
- var IMusicContentCenterImpl = /** @class */ (function () {
188
- function IMusicContentCenterImpl() {
189
- }
190
- IMusicContentCenterImpl.prototype.initialize = function (configuration) {
191
- var apiType = this.getApiTypeFromInitialize(configuration);
192
- var jsonParams = {
159
+ class IMusicContentCenterImpl {
160
+ initialize(configuration) {
161
+ const apiType = this.getApiTypeFromInitialize(configuration);
162
+ const jsonParams = {
193
163
  configuration: configuration,
194
- toJSON: function () {
164
+ toJSON: () => {
195
165
  return {
196
166
  configuration: configuration,
197
167
  };
198
168
  },
199
169
  };
200
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
170
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
201
171
  return jsonResults.result;
202
- };
203
- IMusicContentCenterImpl.prototype.getApiTypeFromInitialize = function (configuration) {
172
+ }
173
+ getApiTypeFromInitialize(configuration) {
204
174
  return 'MusicContentCenter_initialize_df70304';
205
- };
206
- IMusicContentCenterImpl.prototype.renewToken = function (token) {
207
- var apiType = this.getApiTypeFromRenewToken(token);
208
- var jsonParams = {
175
+ }
176
+ renewToken(token) {
177
+ const apiType = this.getApiTypeFromRenewToken(token);
178
+ const jsonParams = {
209
179
  token: token,
210
- toJSON: function () {
180
+ toJSON: () => {
211
181
  return {
212
182
  token: token,
213
183
  };
214
184
  },
215
185
  };
216
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
186
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
217
187
  return jsonResults.result;
218
- };
219
- IMusicContentCenterImpl.prototype.getApiTypeFromRenewToken = function (token) {
188
+ }
189
+ getApiTypeFromRenewToken(token) {
220
190
  return 'MusicContentCenter_renewToken_3a2037f';
221
- };
222
- IMusicContentCenterImpl.prototype.release = function () {
223
- var apiType = this.getApiTypeFromRelease();
224
- var jsonParams = {};
191
+ }
192
+ release() {
193
+ const apiType = this.getApiTypeFromRelease();
194
+ const jsonParams = {};
225
195
  IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
226
- };
227
- IMusicContentCenterImpl.prototype.getApiTypeFromRelease = function () {
196
+ }
197
+ getApiTypeFromRelease() {
228
198
  return 'MusicContentCenter_release';
229
- };
230
- IMusicContentCenterImpl.prototype.registerEventHandler = function (eventHandler) {
231
- var apiType = this.getApiTypeFromRegisterEventHandler(eventHandler);
232
- var jsonParams = {
199
+ }
200
+ registerEventHandler(eventHandler) {
201
+ const apiType = this.getApiTypeFromRegisterEventHandler(eventHandler);
202
+ const jsonParams = {
233
203
  eventHandler: eventHandler,
234
- toJSON: function () {
204
+ toJSON: () => {
235
205
  return {};
236
206
  },
237
207
  };
238
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
208
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
239
209
  return jsonResults.result;
240
- };
241
- IMusicContentCenterImpl.prototype.getApiTypeFromRegisterEventHandler = function (eventHandler) {
210
+ }
211
+ getApiTypeFromRegisterEventHandler(eventHandler) {
242
212
  return 'MusicContentCenter_registerEventHandler_ae49451';
243
- };
244
- IMusicContentCenterImpl.prototype.unregisterEventHandler = function () {
245
- var apiType = this.getApiTypeFromUnregisterEventHandler();
246
- var jsonParams = {};
247
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
213
+ }
214
+ unregisterEventHandler() {
215
+ const apiType = this.getApiTypeFromUnregisterEventHandler();
216
+ const jsonParams = {};
217
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
248
218
  return jsonResults.result;
249
- };
250
- IMusicContentCenterImpl.prototype.getApiTypeFromUnregisterEventHandler = function () {
219
+ }
220
+ getApiTypeFromUnregisterEventHandler() {
251
221
  return 'MusicContentCenter_unregisterEventHandler';
252
- };
253
- IMusicContentCenterImpl.prototype.createMusicPlayer = function () {
254
- var apiType = this.getApiTypeFromCreateMusicPlayer();
255
- var jsonParams = {};
256
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
222
+ }
223
+ createMusicPlayer() {
224
+ const apiType = this.getApiTypeFromCreateMusicPlayer();
225
+ const jsonParams = {};
226
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
257
227
  return jsonResults.result;
258
- };
259
- IMusicContentCenterImpl.prototype.getApiTypeFromCreateMusicPlayer = function () {
228
+ }
229
+ getApiTypeFromCreateMusicPlayer() {
260
230
  return 'MusicContentCenter_createMusicPlayer';
261
- };
262
- IMusicContentCenterImpl.prototype.destroyMusicPlayer = function (musicPlayer) {
263
- var apiType = this.getApiTypeFromDestroyMusicPlayer(musicPlayer);
264
- var jsonParams = {
231
+ }
232
+ destroyMusicPlayer(musicPlayer) {
233
+ const apiType = this.getApiTypeFromDestroyMusicPlayer(musicPlayer);
234
+ const jsonParams = {
265
235
  music_player: musicPlayer,
266
- toJSON: function () {
236
+ toJSON: () => {
267
237
  return {};
268
238
  },
269
239
  };
270
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
240
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
271
241
  return jsonResults.result;
272
- };
273
- IMusicContentCenterImpl.prototype.getApiTypeFromDestroyMusicPlayer = function (musicPlayer) {
242
+ }
243
+ getApiTypeFromDestroyMusicPlayer(musicPlayer) {
274
244
  return 'MusicContentCenter_destroyMusicPlayer_876d086';
275
- };
276
- IMusicContentCenterImpl.prototype.getMusicCharts = function () {
277
- var apiType = this.getApiTypeFromGetMusicCharts();
278
- var jsonParams = {};
279
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
280
- var requestId = jsonResults.requestId;
245
+ }
246
+ getMusicCharts() {
247
+ const apiType = this.getApiTypeFromGetMusicCharts();
248
+ const jsonParams = {};
249
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
250
+ const requestId = jsonResults.requestId;
281
251
  return requestId;
282
- };
283
- IMusicContentCenterImpl.prototype.getApiTypeFromGetMusicCharts = function () {
252
+ }
253
+ getApiTypeFromGetMusicCharts() {
284
254
  return 'MusicContentCenter_getMusicCharts_66d4ecd';
285
- };
286
- IMusicContentCenterImpl.prototype.getMusicCollectionByMusicChartId = function (musicChartId, page, pageSize, jsonOption) {
287
- var apiType = this.getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption);
288
- var jsonParams = {
255
+ }
256
+ getMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
257
+ const apiType = this.getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption);
258
+ const jsonParams = {
289
259
  musicChartId: musicChartId,
290
260
  page: page,
291
261
  pageSize: pageSize,
292
262
  jsonOption: jsonOption,
293
- toJSON: function () {
263
+ toJSON: () => {
294
264
  return {
295
265
  musicChartId: musicChartId,
296
266
  page: page,
@@ -299,21 +269,21 @@ var IMusicContentCenterImpl = /** @class */ (function () {
299
269
  };
300
270
  },
301
271
  };
302
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
303
- var requestId = jsonResults.requestId;
272
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
273
+ const requestId = jsonResults.requestId;
304
274
  return requestId;
305
- };
306
- IMusicContentCenterImpl.prototype.getApiTypeFromGetMusicCollectionByMusicChartId = function (musicChartId, page, pageSize, jsonOption) {
275
+ }
276
+ getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
307
277
  return 'MusicContentCenter_getMusicCollectionByMusicChartId_8cd0b4d';
308
- };
309
- IMusicContentCenterImpl.prototype.searchMusic = function (keyWord, page, pageSize, jsonOption) {
310
- var apiType = this.getApiTypeFromSearchMusic(keyWord, page, pageSize, jsonOption);
311
- var jsonParams = {
278
+ }
279
+ searchMusic(keyWord, page, pageSize, jsonOption) {
280
+ const apiType = this.getApiTypeFromSearchMusic(keyWord, page, pageSize, jsonOption);
281
+ const jsonParams = {
312
282
  keyWord: keyWord,
313
283
  page: page,
314
284
  pageSize: pageSize,
315
285
  jsonOption: jsonOption,
316
- toJSON: function () {
286
+ toJSON: () => {
317
287
  return {
318
288
  keyWord: keyWord,
319
289
  page: page,
@@ -322,134 +292,131 @@ var IMusicContentCenterImpl = /** @class */ (function () {
322
292
  };
323
293
  },
324
294
  };
325
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
326
- var requestId = jsonResults.requestId;
295
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
296
+ const requestId = jsonResults.requestId;
327
297
  return requestId;
328
- };
329
- IMusicContentCenterImpl.prototype.getApiTypeFromSearchMusic = function (keyWord, page, pageSize, jsonOption) {
298
+ }
299
+ getApiTypeFromSearchMusic(keyWord, page, pageSize, jsonOption) {
330
300
  return 'MusicContentCenter_searchMusic_3f8cf09';
331
- };
332
- IMusicContentCenterImpl.prototype.preload = function (songCode) {
333
- var apiType = this.getApiTypeFromPreload(songCode);
334
- var jsonParams = {
301
+ }
302
+ preload(songCode) {
303
+ const apiType = this.getApiTypeFromPreload(songCode);
304
+ const jsonParams = {
335
305
  songCode: songCode,
336
- toJSON: function () {
306
+ toJSON: () => {
337
307
  return {
338
308
  songCode: songCode,
339
309
  };
340
310
  },
341
311
  };
342
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
343
- var requestId = jsonResults.requestId;
312
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
313
+ const requestId = jsonResults.requestId;
344
314
  return requestId;
345
- };
346
- IMusicContentCenterImpl.prototype.getApiTypeFromPreload = function (songCode) {
315
+ }
316
+ getApiTypeFromPreload(songCode) {
347
317
  return 'MusicContentCenter_preload_d3baeab';
348
- };
349
- IMusicContentCenterImpl.prototype.removeCache = function (songCode) {
350
- var apiType = this.getApiTypeFromRemoveCache(songCode);
351
- var jsonParams = {
318
+ }
319
+ removeCache(songCode) {
320
+ const apiType = this.getApiTypeFromRemoveCache(songCode);
321
+ const jsonParams = {
352
322
  songCode: songCode,
353
- toJSON: function () {
323
+ toJSON: () => {
354
324
  return {
355
325
  songCode: songCode,
356
326
  };
357
327
  },
358
328
  };
359
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
329
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
360
330
  return jsonResults.result;
361
- };
362
- IMusicContentCenterImpl.prototype.getApiTypeFromRemoveCache = function (songCode) {
331
+ }
332
+ getApiTypeFromRemoveCache(songCode) {
363
333
  return 'MusicContentCenter_removeCache_f631116';
364
- };
365
- IMusicContentCenterImpl.prototype.getCaches = function () {
366
- var apiType = this.getApiTypeFromGetCaches();
367
- var jsonParams = {};
368
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
369
- var cacheInfo = jsonResults.cacheInfo;
370
- var cacheInfoSize = jsonResults.cacheInfoSize;
334
+ }
335
+ getCaches() {
336
+ const apiType = this.getApiTypeFromGetCaches();
337
+ const jsonParams = {};
338
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
339
+ const cacheInfo = jsonResults.cacheInfo;
340
+ const cacheInfoSize = jsonResults.cacheInfoSize;
371
341
  return {
372
- cacheInfo: cacheInfo,
373
- cacheInfoSize: cacheInfoSize,
342
+ cacheInfo,
343
+ cacheInfoSize,
374
344
  };
375
- };
376
- IMusicContentCenterImpl.prototype.getApiTypeFromGetCaches = function () {
345
+ }
346
+ getApiTypeFromGetCaches() {
377
347
  return 'MusicContentCenter_getCaches_c4f9978';
378
- };
379
- IMusicContentCenterImpl.prototype.isPreloaded = function (songCode) {
380
- var apiType = this.getApiTypeFromIsPreloaded(songCode);
381
- var jsonParams = {
348
+ }
349
+ isPreloaded(songCode) {
350
+ const apiType = this.getApiTypeFromIsPreloaded(songCode);
351
+ const jsonParams = {
382
352
  songCode: songCode,
383
- toJSON: function () {
353
+ toJSON: () => {
384
354
  return {
385
355
  songCode: songCode,
386
356
  };
387
357
  },
388
358
  };
389
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
359
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
390
360
  return jsonResults.result;
391
- };
392
- IMusicContentCenterImpl.prototype.getApiTypeFromIsPreloaded = function (songCode) {
361
+ }
362
+ getApiTypeFromIsPreloaded(songCode) {
393
363
  return 'MusicContentCenter_isPreloaded_f631116';
394
- };
395
- IMusicContentCenterImpl.prototype.getLyric = function (songCode, lyricType) {
396
- if (lyricType === void 0) { lyricType = 0; }
397
- var apiType = this.getApiTypeFromGetLyric(songCode, lyricType);
398
- var jsonParams = {
364
+ }
365
+ getLyric(songCode, lyricType = 0) {
366
+ const apiType = this.getApiTypeFromGetLyric(songCode, lyricType);
367
+ const jsonParams = {
399
368
  songCode: songCode,
400
369
  lyricType: lyricType,
401
- toJSON: function () {
370
+ toJSON: () => {
402
371
  return {
403
372
  songCode: songCode,
404
373
  lyricType: lyricType,
405
374
  };
406
375
  },
407
376
  };
408
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
409
- var requestId = jsonResults.requestId;
377
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
378
+ const requestId = jsonResults.requestId;
410
379
  return requestId;
411
- };
412
- IMusicContentCenterImpl.prototype.getApiTypeFromGetLyric = function (songCode, lyricType) {
413
- if (lyricType === void 0) { lyricType = 0; }
380
+ }
381
+ getApiTypeFromGetLyric(songCode, lyricType = 0) {
414
382
  return 'MusicContentCenter_getLyric_5ab5efd';
415
- };
416
- IMusicContentCenterImpl.prototype.getSongSimpleInfo = function (songCode) {
417
- var apiType = this.getApiTypeFromGetSongSimpleInfo(songCode);
418
- var jsonParams = {
383
+ }
384
+ getSongSimpleInfo(songCode) {
385
+ const apiType = this.getApiTypeFromGetSongSimpleInfo(songCode);
386
+ const jsonParams = {
419
387
  songCode: songCode,
420
- toJSON: function () {
388
+ toJSON: () => {
421
389
  return {
422
390
  songCode: songCode,
423
391
  };
424
392
  },
425
393
  };
426
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
427
- var requestId = jsonResults.requestId;
394
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
395
+ const requestId = jsonResults.requestId;
428
396
  return requestId;
429
- };
430
- IMusicContentCenterImpl.prototype.getApiTypeFromGetSongSimpleInfo = function (songCode) {
397
+ }
398
+ getApiTypeFromGetSongSimpleInfo(songCode) {
431
399
  return 'MusicContentCenter_getSongSimpleInfo_d3baeab';
432
- };
433
- IMusicContentCenterImpl.prototype.getInternalSongCode = function (songCode, jsonOption) {
434
- var apiType = this.getApiTypeFromGetInternalSongCode(songCode, jsonOption);
435
- var jsonParams = {
400
+ }
401
+ getInternalSongCode(songCode, jsonOption) {
402
+ const apiType = this.getApiTypeFromGetInternalSongCode(songCode, jsonOption);
403
+ const jsonParams = {
436
404
  songCode: songCode,
437
405
  jsonOption: jsonOption,
438
- toJSON: function () {
406
+ toJSON: () => {
439
407
  return {
440
408
  songCode: songCode,
441
409
  jsonOption: jsonOption,
442
410
  };
443
411
  },
444
412
  };
445
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
446
- var internalSongCode = jsonResults.internalSongCode;
413
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
414
+ const internalSongCode = jsonResults.internalSongCode;
447
415
  return internalSongCode;
448
- };
449
- IMusicContentCenterImpl.prototype.getApiTypeFromGetInternalSongCode = function (songCode, jsonOption) {
416
+ }
417
+ getApiTypeFromGetInternalSongCode(songCode, jsonOption) {
450
418
  return 'MusicContentCenter_getInternalSongCode_3a3d1e7';
451
- };
452
- return IMusicContentCenterImpl;
453
- }());
419
+ }
420
+ }
454
421
  exports.IMusicContentCenterImpl = IMusicContentCenterImpl;
455
- var IrisApiEngine_1 = require("../internal/IrisApiEngine");
422
+ const IrisApiEngine_1 = require("../internal/IrisApiEngine");