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.
- package/gulpfile.js +3 -1
- package/js/AgoraSdk.js +4 -4
- package/js/Private/AgoraBase.js +367 -326
- package/js/Private/AgoraMediaBase.js +265 -76
- package/js/Private/AgoraMediaPlayerTypes.js +12 -30
- package/js/Private/IAgoraH265Transcoder.js +2 -5
- package/js/Private/IAgoraLog.js +2 -5
- package/js/Private/IAgoraMediaEngine.js +2 -5
- package/js/Private/IAgoraMediaPlayer.js +4 -10
- package/js/Private/IAgoraMediaRecorder.js +2 -5
- package/js/Private/IAgoraMediaStreamingSource.js +2 -5
- package/js/Private/IAgoraMusicContentCenter.js +21 -68
- package/js/Private/IAgoraRhythmPlayer.js +2 -5
- package/js/Private/IAgoraRtcEngine.js +76 -130
- package/js/Private/IAgoraRtcEngineEx.js +5 -28
- package/js/Private/IAgoraSpatialAudio.js +6 -15
- package/js/Private/IAudioDeviceManager.js +2 -5
- package/js/Private/impl/AgoraMediaBaseImpl.js +11 -14
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +43 -46
- package/js/Private/impl/IAgoraMediaEngineImpl.js +155 -172
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +534 -546
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +26 -29
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +218 -251
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +434 -436
- package/js/Private/impl/IAgoraRtcEngineImpl.js +2445 -2423
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +167 -170
- package/js/Private/impl/IAudioDeviceManagerImpl.js +232 -235
- package/js/Private/internal/AgoraH265TranscoderInternal.js +33 -57
- package/js/Private/internal/AgoraMediaBaseInternal.js +9 -28
- package/js/Private/internal/AudioDeviceManagerInternal.js +24 -44
- package/js/Private/internal/IrisApiEngine.js +94 -145
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +3 -23
- package/js/Private/internal/MediaEngineInternal.js +69 -94
- package/js/Private/internal/MediaPlayerInternal.js +105 -125
- package/js/Private/internal/MediaRecorderInternal.js +37 -64
- package/js/Private/internal/MusicContentCenterInternal.js +92 -129
- package/js/Private/internal/RtcEngineExInternal.js +213 -243
- package/js/Private/ti/AgoraBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +2 -2
- package/js/Private/ti/IAgoraLog-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +2 -2
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
- package/js/Private/ti/IAgoraRtcEngine-ti.js +7 -7
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
- package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
- package/js/Renderer/AgoraView.js +100 -145
- package/js/Renderer/IRenderer.js +43 -53
- package/js/Renderer/IRendererManager.js +106 -132
- package/js/Renderer/RendererCache.js +63 -96
- package/js/Renderer/RendererManager.js +35 -69
- package/js/Renderer/WebGLRenderer/index.js +77 -106
- package/js/Renderer/YUVCanvasRenderer/index.js +18 -40
- package/js/Utils.js +45 -64
- package/package.json +9 -7
- package/scripts/checkElectron.js +41 -0
- package/scripts/downloadPrebuild.js +56 -24
- package/scripts/synclib.js +6 -6
- package/ts/Private/AgoraBase.ts +269 -4
- package/ts/Private/AgoraMediaBase.ts +343 -1
- package/ts/Private/IAgoraMediaEngine.ts +3 -3
- package/ts/Private/IAgoraRtcEngine.ts +130 -119
- package/ts/Private/IAgoraRtcEngineEx.ts +14 -9
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -61
- package/ts/Private/internal/IrisApiEngine.ts +3 -7
- package/ts/Private/internal/MediaEngineInternal.ts +0 -1
- package/ts/Private/internal/RtcEngineExInternal.ts +8 -4
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
- package/ts/Renderer/IRenderer.ts +1 -2
- package/ts/Renderer/IRendererManager.ts +21 -12
- package/ts/Utils.ts +15 -0
- package/types/Private/AgoraBase.d.ts +264 -8
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +336 -1
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +3 -3
- package/types/Private/IAgoraRtcEngine.d.ts +106 -116
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +10 -10
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +3 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +13 -5
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Renderer/IRenderer.d.ts.map +1 -1
- package/types/Renderer/IRendererManager.d.ts.map +1 -1
- package/types/Utils.d.ts +4 -0
- 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
|
-
|
|
4
|
+
const IAgoraMediaPlayerImpl_1 = require("./IAgoraMediaPlayerImpl");
|
|
20
5
|
// @ts-ignore
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
12
|
+
}
|
|
13
|
+
getApiTypeFromGetCount() {
|
|
31
14
|
return 'MusicChartCollection_getCount';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
}
|
|
16
|
+
get(index) {
|
|
17
|
+
const apiType = this.getApiTypeFromGet(index);
|
|
18
|
+
const jsonParams = {
|
|
36
19
|
index: index,
|
|
37
|
-
toJSON:
|
|
20
|
+
toJSON: () => {
|
|
38
21
|
return {
|
|
39
22
|
index: index,
|
|
40
23
|
};
|
|
41
24
|
},
|
|
42
25
|
};
|
|
43
|
-
|
|
26
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
44
27
|
return jsonResults.result;
|
|
45
|
-
}
|
|
46
|
-
|
|
28
|
+
}
|
|
29
|
+
getApiTypeFromGet(index) {
|
|
47
30
|
return 'MusicChartCollection_get_46f8ab7';
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}());
|
|
31
|
+
}
|
|
32
|
+
}
|
|
51
33
|
exports.MusicChartCollectionImpl = MusicChartCollectionImpl;
|
|
52
34
|
// @ts-ignore
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
41
|
+
}
|
|
42
|
+
getApiTypeFromGetCount() {
|
|
63
43
|
return 'MusicCollection_getCount';
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
50
|
+
}
|
|
51
|
+
getApiTypeFromGetTotal() {
|
|
72
52
|
return 'MusicCollection_getTotal';
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
59
|
+
}
|
|
60
|
+
getApiTypeFromGetPage() {
|
|
81
61
|
return 'MusicCollection_getPage';
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
68
|
+
}
|
|
69
|
+
getApiTypeFromGetPageSize() {
|
|
90
70
|
return 'MusicCollection_getPageSize';
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
71
|
+
}
|
|
72
|
+
getMusic(index) {
|
|
73
|
+
const apiType = this.getApiTypeFromGetMusic(index);
|
|
74
|
+
const jsonParams = {
|
|
95
75
|
index: index,
|
|
96
|
-
toJSON:
|
|
76
|
+
toJSON: () => {
|
|
97
77
|
return {
|
|
98
78
|
index: index,
|
|
99
79
|
};
|
|
100
80
|
},
|
|
101
81
|
};
|
|
102
|
-
|
|
82
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
103
83
|
return jsonResults.result;
|
|
104
|
-
}
|
|
105
|
-
|
|
84
|
+
}
|
|
85
|
+
getApiTypeFromGetMusic(index) {
|
|
106
86
|
return 'MusicCollection_getMusic_8fcdcef';
|
|
107
|
-
}
|
|
108
|
-
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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:
|
|
126
|
+
toJSON: () => {
|
|
152
127
|
return {
|
|
153
128
|
mode: mode,
|
|
154
129
|
};
|
|
155
130
|
},
|
|
156
131
|
};
|
|
157
|
-
|
|
132
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
158
133
|
return jsonResults.result;
|
|
159
|
-
}
|
|
160
|
-
|
|
134
|
+
}
|
|
135
|
+
getApiTypeFromSetPlayMode(mode) {
|
|
161
136
|
return 'MusicPlayer_setPlayMode_748bee0';
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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:
|
|
143
|
+
toJSON: () => {
|
|
170
144
|
return {
|
|
171
145
|
songCode: songCode,
|
|
172
146
|
startPos: startPos,
|
|
173
147
|
};
|
|
174
148
|
},
|
|
175
149
|
};
|
|
176
|
-
|
|
150
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
177
151
|
return jsonResults.result;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
if (startPos === void 0) { startPos = 0; }
|
|
152
|
+
}
|
|
153
|
+
getApiTypeFromOpenWithSongCode(songCode, startPos = 0) {
|
|
181
154
|
return 'MusicPlayer_open_303b92e';
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
}(IAgoraMediaPlayerImpl_1.IMediaPlayerImpl));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
185
157
|
exports.IMusicPlayerImpl = IMusicPlayerImpl;
|
|
186
158
|
// @ts-ignore
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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:
|
|
164
|
+
toJSON: () => {
|
|
195
165
|
return {
|
|
196
166
|
configuration: configuration,
|
|
197
167
|
};
|
|
198
168
|
},
|
|
199
169
|
};
|
|
200
|
-
|
|
170
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
201
171
|
return jsonResults.result;
|
|
202
|
-
}
|
|
203
|
-
|
|
172
|
+
}
|
|
173
|
+
getApiTypeFromInitialize(configuration) {
|
|
204
174
|
return 'MusicContentCenter_initialize_df70304';
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
175
|
+
}
|
|
176
|
+
renewToken(token) {
|
|
177
|
+
const apiType = this.getApiTypeFromRenewToken(token);
|
|
178
|
+
const jsonParams = {
|
|
209
179
|
token: token,
|
|
210
|
-
toJSON:
|
|
180
|
+
toJSON: () => {
|
|
211
181
|
return {
|
|
212
182
|
token: token,
|
|
213
183
|
};
|
|
214
184
|
},
|
|
215
185
|
};
|
|
216
|
-
|
|
186
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
217
187
|
return jsonResults.result;
|
|
218
|
-
}
|
|
219
|
-
|
|
188
|
+
}
|
|
189
|
+
getApiTypeFromRenewToken(token) {
|
|
220
190
|
return 'MusicContentCenter_renewToken_3a2037f';
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
191
|
+
}
|
|
192
|
+
release() {
|
|
193
|
+
const apiType = this.getApiTypeFromRelease();
|
|
194
|
+
const jsonParams = {};
|
|
225
195
|
IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
226
|
-
}
|
|
227
|
-
|
|
196
|
+
}
|
|
197
|
+
getApiTypeFromRelease() {
|
|
228
198
|
return 'MusicContentCenter_release';
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
199
|
+
}
|
|
200
|
+
registerEventHandler(eventHandler) {
|
|
201
|
+
const apiType = this.getApiTypeFromRegisterEventHandler(eventHandler);
|
|
202
|
+
const jsonParams = {
|
|
233
203
|
eventHandler: eventHandler,
|
|
234
|
-
toJSON:
|
|
204
|
+
toJSON: () => {
|
|
235
205
|
return {};
|
|
236
206
|
},
|
|
237
207
|
};
|
|
238
|
-
|
|
208
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
239
209
|
return jsonResults.result;
|
|
240
|
-
}
|
|
241
|
-
|
|
210
|
+
}
|
|
211
|
+
getApiTypeFromRegisterEventHandler(eventHandler) {
|
|
242
212
|
return 'MusicContentCenter_registerEventHandler_ae49451';
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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
|
-
|
|
219
|
+
}
|
|
220
|
+
getApiTypeFromUnregisterEventHandler() {
|
|
251
221
|
return 'MusicContentCenter_unregisterEventHandler';
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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
|
-
|
|
228
|
+
}
|
|
229
|
+
getApiTypeFromCreateMusicPlayer() {
|
|
260
230
|
return 'MusicContentCenter_createMusicPlayer';
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
231
|
+
}
|
|
232
|
+
destroyMusicPlayer(musicPlayer) {
|
|
233
|
+
const apiType = this.getApiTypeFromDestroyMusicPlayer(musicPlayer);
|
|
234
|
+
const jsonParams = {
|
|
265
235
|
music_player: musicPlayer,
|
|
266
|
-
toJSON:
|
|
236
|
+
toJSON: () => {
|
|
267
237
|
return {};
|
|
268
238
|
},
|
|
269
239
|
};
|
|
270
|
-
|
|
240
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
271
241
|
return jsonResults.result;
|
|
272
|
-
}
|
|
273
|
-
|
|
242
|
+
}
|
|
243
|
+
getApiTypeFromDestroyMusicPlayer(musicPlayer) {
|
|
274
244
|
return 'MusicContentCenter_destroyMusicPlayer_876d086';
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
-
|
|
252
|
+
}
|
|
253
|
+
getApiTypeFromGetMusicCharts() {
|
|
284
254
|
return 'MusicContentCenter_getMusicCharts_66d4ecd';
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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:
|
|
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
|
-
|
|
303
|
-
|
|
272
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
273
|
+
const requestId = jsonResults.requestId;
|
|
304
274
|
return requestId;
|
|
305
|
-
}
|
|
306
|
-
|
|
275
|
+
}
|
|
276
|
+
getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
|
|
307
277
|
return 'MusicContentCenter_getMusicCollectionByMusicChartId_8cd0b4d';
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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:
|
|
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
|
-
|
|
326
|
-
|
|
295
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
296
|
+
const requestId = jsonResults.requestId;
|
|
327
297
|
return requestId;
|
|
328
|
-
}
|
|
329
|
-
|
|
298
|
+
}
|
|
299
|
+
getApiTypeFromSearchMusic(keyWord, page, pageSize, jsonOption) {
|
|
330
300
|
return 'MusicContentCenter_searchMusic_3f8cf09';
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
301
|
+
}
|
|
302
|
+
preload(songCode) {
|
|
303
|
+
const apiType = this.getApiTypeFromPreload(songCode);
|
|
304
|
+
const jsonParams = {
|
|
335
305
|
songCode: songCode,
|
|
336
|
-
toJSON:
|
|
306
|
+
toJSON: () => {
|
|
337
307
|
return {
|
|
338
308
|
songCode: songCode,
|
|
339
309
|
};
|
|
340
310
|
},
|
|
341
311
|
};
|
|
342
|
-
|
|
343
|
-
|
|
312
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
313
|
+
const requestId = jsonResults.requestId;
|
|
344
314
|
return requestId;
|
|
345
|
-
}
|
|
346
|
-
|
|
315
|
+
}
|
|
316
|
+
getApiTypeFromPreload(songCode) {
|
|
347
317
|
return 'MusicContentCenter_preload_d3baeab';
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
318
|
+
}
|
|
319
|
+
removeCache(songCode) {
|
|
320
|
+
const apiType = this.getApiTypeFromRemoveCache(songCode);
|
|
321
|
+
const jsonParams = {
|
|
352
322
|
songCode: songCode,
|
|
353
|
-
toJSON:
|
|
323
|
+
toJSON: () => {
|
|
354
324
|
return {
|
|
355
325
|
songCode: songCode,
|
|
356
326
|
};
|
|
357
327
|
},
|
|
358
328
|
};
|
|
359
|
-
|
|
329
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
360
330
|
return jsonResults.result;
|
|
361
|
-
}
|
|
362
|
-
|
|
331
|
+
}
|
|
332
|
+
getApiTypeFromRemoveCache(songCode) {
|
|
363
333
|
return 'MusicContentCenter_removeCache_f631116';
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
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
|
|
373
|
-
cacheInfoSize
|
|
342
|
+
cacheInfo,
|
|
343
|
+
cacheInfoSize,
|
|
374
344
|
};
|
|
375
|
-
}
|
|
376
|
-
|
|
345
|
+
}
|
|
346
|
+
getApiTypeFromGetCaches() {
|
|
377
347
|
return 'MusicContentCenter_getCaches_c4f9978';
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
348
|
+
}
|
|
349
|
+
isPreloaded(songCode) {
|
|
350
|
+
const apiType = this.getApiTypeFromIsPreloaded(songCode);
|
|
351
|
+
const jsonParams = {
|
|
382
352
|
songCode: songCode,
|
|
383
|
-
toJSON:
|
|
353
|
+
toJSON: () => {
|
|
384
354
|
return {
|
|
385
355
|
songCode: songCode,
|
|
386
356
|
};
|
|
387
357
|
},
|
|
388
358
|
};
|
|
389
|
-
|
|
359
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
390
360
|
return jsonResults.result;
|
|
391
|
-
}
|
|
392
|
-
|
|
361
|
+
}
|
|
362
|
+
getApiTypeFromIsPreloaded(songCode) {
|
|
393
363
|
return 'MusicContentCenter_isPreloaded_f631116';
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
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:
|
|
370
|
+
toJSON: () => {
|
|
402
371
|
return {
|
|
403
372
|
songCode: songCode,
|
|
404
373
|
lyricType: lyricType,
|
|
405
374
|
};
|
|
406
375
|
},
|
|
407
376
|
};
|
|
408
|
-
|
|
409
|
-
|
|
377
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
378
|
+
const requestId = jsonResults.requestId;
|
|
410
379
|
return requestId;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
if (lyricType === void 0) { lyricType = 0; }
|
|
380
|
+
}
|
|
381
|
+
getApiTypeFromGetLyric(songCode, lyricType = 0) {
|
|
414
382
|
return 'MusicContentCenter_getLyric_5ab5efd';
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
383
|
+
}
|
|
384
|
+
getSongSimpleInfo(songCode) {
|
|
385
|
+
const apiType = this.getApiTypeFromGetSongSimpleInfo(songCode);
|
|
386
|
+
const jsonParams = {
|
|
419
387
|
songCode: songCode,
|
|
420
|
-
toJSON:
|
|
388
|
+
toJSON: () => {
|
|
421
389
|
return {
|
|
422
390
|
songCode: songCode,
|
|
423
391
|
};
|
|
424
392
|
},
|
|
425
393
|
};
|
|
426
|
-
|
|
427
|
-
|
|
394
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
395
|
+
const requestId = jsonResults.requestId;
|
|
428
396
|
return requestId;
|
|
429
|
-
}
|
|
430
|
-
|
|
397
|
+
}
|
|
398
|
+
getApiTypeFromGetSongSimpleInfo(songCode) {
|
|
431
399
|
return 'MusicContentCenter_getSongSimpleInfo_d3baeab';
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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:
|
|
406
|
+
toJSON: () => {
|
|
439
407
|
return {
|
|
440
408
|
songCode: songCode,
|
|
441
409
|
jsonOption: jsonOption,
|
|
442
410
|
};
|
|
443
411
|
},
|
|
444
412
|
};
|
|
445
|
-
|
|
446
|
-
|
|
413
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
414
|
+
const internalSongCode = jsonResults.internalSongCode;
|
|
447
415
|
return internalSongCode;
|
|
448
|
-
}
|
|
449
|
-
|
|
416
|
+
}
|
|
417
|
+
getApiTypeFromGetInternalSongCode(songCode, jsonOption) {
|
|
450
418
|
return 'MusicContentCenter_getInternalSongCode_3a3d1e7';
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
}());
|
|
419
|
+
}
|
|
420
|
+
}
|
|
454
421
|
exports.IMusicContentCenterImpl = IMusicContentCenterImpl;
|
|
455
|
-
|
|
422
|
+
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|