agora-electron-sdk 4.3.2 → 4.4.0-dev.2
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 +12 -0
- package/gulpfile.js +3 -1
- package/js/AgoraSdk.js +5 -5
- package/js/Private/AgoraBase.js +374 -333
- package/js/Private/AgoraMediaBase.js +293 -78
- package/js/Private/AgoraMediaPlayerTypes.js +12 -30
- package/js/Private/IAgoraH265Transcoder.js +2 -5
- package/js/Private/IAgoraLog.js +6 -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 +14 -17
- 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 +2429 -2439
- 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 +219 -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 +120 -146
- package/js/Renderer/IRenderer.js +43 -53
- package/js/Renderer/IRendererManager.js +119 -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 +13 -7
- package/scripts/checkElectron.js +41 -0
- package/scripts/downloadPrebuild.js +54 -16
- package/scripts/synclib.js +6 -6
- package/ts/AgoraSdk.ts +1 -1
- package/ts/Private/AgoraBase.ts +282 -13
- package/ts/Private/AgoraMediaBase.ts +390 -32
- package/ts/Private/IAgoraLog.ts +4 -0
- package/ts/Private/IAgoraMediaEngine.ts +10 -21
- package/ts/Private/IAgoraMediaPlayer.ts +2 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +12 -12
- package/ts/Private/IAgoraRtcEngine.ts +243 -237
- package/ts/Private/IAgoraRtcEngineEx.ts +34 -26
- package/ts/Private/IAudioDeviceManager.ts +4 -4
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -103
- package/ts/Private/internal/IrisApiEngine.ts +3 -7
- package/ts/Private/internal/MediaEngineInternal.ts +0 -1
- package/ts/Private/internal/RtcEngineExInternal.ts +14 -5
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
- package/ts/Renderer/AgoraView.ts +33 -4
- package/ts/Renderer/IRenderer.ts +1 -2
- package/ts/Renderer/IRendererManager.ts +41 -14
- package/ts/Renderer/RendererCache.ts +2 -2
- package/ts/Types.ts +1 -1
- package/ts/Utils.ts +15 -0
- package/types/AgoraSdk.d.ts +1 -1
- package/types/Private/AgoraBase.d.ts +277 -17
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +382 -32
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraLog.d.ts +5 -1
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +10 -21
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +2 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +12 -12
- package/types/Private/IAgoraRtcEngine.d.ts +219 -232
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +30 -27
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +4 -4
- 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 -9
- 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/AgoraView.d.ts +8 -2
- package/types/Renderer/AgoraView.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/Renderer/RendererCache.d.ts +1 -1
- package/types/Renderer/RendererCache.d.ts.map +1 -1
- package/types/Types.d.ts +1 -1
- package/types/Types.d.ts.map +1 -1
- package/types/Utils.d.ts +4 -0
- package/types/Utils.d.ts.map +1 -1
|
@@ -1,953 +1,941 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.processIMediaPlayerVideoFrameObserver = exports.IMediaPlayerCacheManagerImpl = exports.IMediaPlayerImpl = void 0;
|
|
4
|
-
|
|
4
|
+
const AgoraMediaBase_1 = require("../AgoraMediaBase");
|
|
5
5
|
// @ts-ignore
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var jsonParams = {};
|
|
12
|
-
var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
6
|
+
class IMediaPlayerImpl {
|
|
7
|
+
getMediaPlayerId() {
|
|
8
|
+
const apiType = this.getApiTypeFromGetMediaPlayerId();
|
|
9
|
+
const jsonParams = {};
|
|
10
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
13
11
|
return jsonResults.result;
|
|
14
|
-
}
|
|
15
|
-
|
|
12
|
+
}
|
|
13
|
+
getApiTypeFromGetMediaPlayerId() {
|
|
16
14
|
return 'MediaPlayer_getMediaPlayerId';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
}
|
|
16
|
+
open(url, startPos) {
|
|
17
|
+
const apiType = this.getApiTypeFromOpen(url, startPos);
|
|
18
|
+
const jsonParams = {
|
|
21
19
|
url: url,
|
|
22
20
|
startPos: startPos,
|
|
23
|
-
toJSON:
|
|
21
|
+
toJSON: () => {
|
|
24
22
|
return {
|
|
25
23
|
url: url,
|
|
26
24
|
startPos: startPos,
|
|
27
25
|
};
|
|
28
26
|
},
|
|
29
27
|
};
|
|
30
|
-
|
|
28
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
31
29
|
return jsonResults.result;
|
|
32
|
-
}
|
|
33
|
-
|
|
30
|
+
}
|
|
31
|
+
getApiTypeFromOpen(url, startPos) {
|
|
34
32
|
return 'MediaPlayer_open_e43f201';
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
}
|
|
34
|
+
openWithMediaSource(source) {
|
|
35
|
+
const apiType = this.getApiTypeFromOpenWithMediaSource(source);
|
|
36
|
+
const jsonParams = {
|
|
39
37
|
source: source,
|
|
40
|
-
toJSON:
|
|
38
|
+
toJSON: () => {
|
|
41
39
|
return {
|
|
42
40
|
source: source,
|
|
43
41
|
};
|
|
44
42
|
},
|
|
45
43
|
};
|
|
46
|
-
|
|
44
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
47
45
|
return jsonResults.result;
|
|
48
|
-
}
|
|
49
|
-
|
|
46
|
+
}
|
|
47
|
+
getApiTypeFromOpenWithMediaSource(source) {
|
|
50
48
|
return 'MediaPlayer_openWithMediaSource_3c11499';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return jsonResults.result;
|
|
57
|
-
}
|
|
58
|
-
|
|
49
|
+
}
|
|
50
|
+
play() {
|
|
51
|
+
const apiType = this.getApiTypeFromPlay();
|
|
52
|
+
const jsonParams = {};
|
|
53
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
54
|
+
return jsonResults.result;
|
|
55
|
+
}
|
|
56
|
+
getApiTypeFromPlay() {
|
|
59
57
|
return 'MediaPlayer_play';
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return jsonResults.result;
|
|
66
|
-
}
|
|
67
|
-
|
|
58
|
+
}
|
|
59
|
+
pause() {
|
|
60
|
+
const apiType = this.getApiTypeFromPause();
|
|
61
|
+
const jsonParams = {};
|
|
62
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
63
|
+
return jsonResults.result;
|
|
64
|
+
}
|
|
65
|
+
getApiTypeFromPause() {
|
|
68
66
|
return 'MediaPlayer_pause';
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return jsonResults.result;
|
|
75
|
-
}
|
|
76
|
-
|
|
67
|
+
}
|
|
68
|
+
stop() {
|
|
69
|
+
const apiType = this.getApiTypeFromStop();
|
|
70
|
+
const jsonParams = {};
|
|
71
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
72
|
+
return jsonResults.result;
|
|
73
|
+
}
|
|
74
|
+
getApiTypeFromStop() {
|
|
77
75
|
return 'MediaPlayer_stop';
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return jsonResults.result;
|
|
84
|
-
}
|
|
85
|
-
|
|
76
|
+
}
|
|
77
|
+
resume() {
|
|
78
|
+
const apiType = this.getApiTypeFromResume();
|
|
79
|
+
const jsonParams = {};
|
|
80
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
81
|
+
return jsonResults.result;
|
|
82
|
+
}
|
|
83
|
+
getApiTypeFromResume() {
|
|
86
84
|
return 'MediaPlayer_resume';
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
}
|
|
86
|
+
seek(newPos) {
|
|
87
|
+
const apiType = this.getApiTypeFromSeek(newPos);
|
|
88
|
+
const jsonParams = {
|
|
91
89
|
newPos: newPos,
|
|
92
|
-
toJSON:
|
|
90
|
+
toJSON: () => {
|
|
93
91
|
return {
|
|
94
92
|
newPos: newPos,
|
|
95
93
|
};
|
|
96
94
|
},
|
|
97
95
|
};
|
|
98
|
-
|
|
96
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
99
97
|
return jsonResults.result;
|
|
100
|
-
}
|
|
101
|
-
|
|
98
|
+
}
|
|
99
|
+
getApiTypeFromSeek(newPos) {
|
|
102
100
|
return 'MediaPlayer_seek_f631116';
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
}
|
|
102
|
+
setAudioPitch(pitch) {
|
|
103
|
+
const apiType = this.getApiTypeFromSetAudioPitch(pitch);
|
|
104
|
+
const jsonParams = {
|
|
107
105
|
pitch: pitch,
|
|
108
|
-
toJSON:
|
|
106
|
+
toJSON: () => {
|
|
109
107
|
return {
|
|
110
108
|
pitch: pitch,
|
|
111
109
|
};
|
|
112
110
|
},
|
|
113
111
|
};
|
|
114
|
-
|
|
112
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
115
113
|
return jsonResults.result;
|
|
116
|
-
}
|
|
117
|
-
|
|
114
|
+
}
|
|
115
|
+
getApiTypeFromSetAudioPitch(pitch) {
|
|
118
116
|
return 'MediaPlayer_setAudioPitch_46f8ab7';
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
}
|
|
118
|
+
getDuration() {
|
|
119
|
+
const apiType = this.getApiTypeFromGetDuration();
|
|
120
|
+
const jsonParams = {};
|
|
121
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
122
|
+
const duration = jsonResults.duration;
|
|
125
123
|
return duration;
|
|
126
|
-
}
|
|
127
|
-
|
|
124
|
+
}
|
|
125
|
+
getApiTypeFromGetDuration() {
|
|
128
126
|
return 'MediaPlayer_getDuration_b12f121';
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
127
|
+
}
|
|
128
|
+
getPlayPosition() {
|
|
129
|
+
const apiType = this.getApiTypeFromGetPlayPosition();
|
|
130
|
+
const jsonParams = {};
|
|
131
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
132
|
+
const pos = jsonResults.pos;
|
|
135
133
|
return pos;
|
|
136
|
-
}
|
|
137
|
-
|
|
134
|
+
}
|
|
135
|
+
getApiTypeFromGetPlayPosition() {
|
|
138
136
|
return 'MediaPlayer_getPlayPosition_b12f121';
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
}
|
|
138
|
+
getStreamCount() {
|
|
139
|
+
const apiType = this.getApiTypeFromGetStreamCount();
|
|
140
|
+
const jsonParams = {};
|
|
141
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
142
|
+
const count = jsonResults.count;
|
|
145
143
|
return count;
|
|
146
|
-
}
|
|
147
|
-
|
|
144
|
+
}
|
|
145
|
+
getApiTypeFromGetStreamCount() {
|
|
148
146
|
return 'MediaPlayer_getStreamCount_b12f121';
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
}
|
|
148
|
+
getStreamInfo(index) {
|
|
149
|
+
const apiType = this.getApiTypeFromGetStreamInfo(index);
|
|
150
|
+
const jsonParams = {
|
|
153
151
|
index: index,
|
|
154
|
-
toJSON:
|
|
152
|
+
toJSON: () => {
|
|
155
153
|
return {
|
|
156
154
|
index: index,
|
|
157
155
|
};
|
|
158
156
|
},
|
|
159
157
|
};
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
159
|
+
const info = jsonResults.info;
|
|
162
160
|
return info;
|
|
163
|
-
}
|
|
164
|
-
|
|
161
|
+
}
|
|
162
|
+
getApiTypeFromGetStreamInfo(index) {
|
|
165
163
|
return 'MediaPlayer_getStreamInfo_0fa63fa';
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
}
|
|
165
|
+
setLoopCount(loopCount) {
|
|
166
|
+
const apiType = this.getApiTypeFromSetLoopCount(loopCount);
|
|
167
|
+
const jsonParams = {
|
|
170
168
|
loopCount: loopCount,
|
|
171
|
-
toJSON:
|
|
169
|
+
toJSON: () => {
|
|
172
170
|
return {
|
|
173
171
|
loopCount: loopCount,
|
|
174
172
|
};
|
|
175
173
|
},
|
|
176
174
|
};
|
|
177
|
-
|
|
175
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
178
176
|
return jsonResults.result;
|
|
179
|
-
}
|
|
180
|
-
|
|
177
|
+
}
|
|
178
|
+
getApiTypeFromSetLoopCount(loopCount) {
|
|
181
179
|
return 'MediaPlayer_setLoopCount_46f8ab7';
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
}
|
|
181
|
+
setPlaybackSpeed(speed) {
|
|
182
|
+
const apiType = this.getApiTypeFromSetPlaybackSpeed(speed);
|
|
183
|
+
const jsonParams = {
|
|
186
184
|
speed: speed,
|
|
187
|
-
toJSON:
|
|
185
|
+
toJSON: () => {
|
|
188
186
|
return {
|
|
189
187
|
speed: speed,
|
|
190
188
|
};
|
|
191
189
|
},
|
|
192
190
|
};
|
|
193
|
-
|
|
191
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
194
192
|
return jsonResults.result;
|
|
195
|
-
}
|
|
196
|
-
|
|
193
|
+
}
|
|
194
|
+
getApiTypeFromSetPlaybackSpeed(speed) {
|
|
197
195
|
return 'MediaPlayer_setPlaybackSpeed_46f8ab7';
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
196
|
+
}
|
|
197
|
+
selectAudioTrack(index) {
|
|
198
|
+
const apiType = this.getApiTypeFromSelectAudioTrack(index);
|
|
199
|
+
const jsonParams = {
|
|
202
200
|
index: index,
|
|
203
|
-
toJSON:
|
|
201
|
+
toJSON: () => {
|
|
204
202
|
return {
|
|
205
203
|
index: index,
|
|
206
204
|
};
|
|
207
205
|
},
|
|
208
206
|
};
|
|
209
|
-
|
|
207
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
210
208
|
return jsonResults.result;
|
|
211
|
-
}
|
|
212
|
-
|
|
209
|
+
}
|
|
210
|
+
getApiTypeFromSelectAudioTrack(index) {
|
|
213
211
|
return 'MediaPlayer_selectAudioTrack_46f8ab7';
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
}
|
|
213
|
+
selectMultiAudioTrack(playoutTrackIndex, publishTrackIndex) {
|
|
214
|
+
const apiType = this.getApiTypeFromSelectMultiAudioTrack(playoutTrackIndex, publishTrackIndex);
|
|
215
|
+
const jsonParams = {
|
|
218
216
|
playoutTrackIndex: playoutTrackIndex,
|
|
219
217
|
publishTrackIndex: publishTrackIndex,
|
|
220
|
-
toJSON:
|
|
218
|
+
toJSON: () => {
|
|
221
219
|
return {
|
|
222
220
|
playoutTrackIndex: playoutTrackIndex,
|
|
223
221
|
publishTrackIndex: publishTrackIndex,
|
|
224
222
|
};
|
|
225
223
|
},
|
|
226
224
|
};
|
|
227
|
-
|
|
225
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
228
226
|
return jsonResults.result;
|
|
229
|
-
}
|
|
230
|
-
|
|
227
|
+
}
|
|
228
|
+
getApiTypeFromSelectMultiAudioTrack(playoutTrackIndex, publishTrackIndex) {
|
|
231
229
|
return 'MediaPlayer_selectMultiAudioTrack_4e92b3c';
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
230
|
+
}
|
|
231
|
+
takeScreenshot(filename) {
|
|
232
|
+
const apiType = this.getApiTypeFromTakeScreenshot(filename);
|
|
233
|
+
const jsonParams = {
|
|
236
234
|
filename: filename,
|
|
237
|
-
toJSON:
|
|
235
|
+
toJSON: () => {
|
|
238
236
|
return {
|
|
239
237
|
filename: filename,
|
|
240
238
|
};
|
|
241
239
|
},
|
|
242
240
|
};
|
|
243
|
-
|
|
241
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
244
242
|
return jsonResults.result;
|
|
245
|
-
}
|
|
246
|
-
|
|
243
|
+
}
|
|
244
|
+
getApiTypeFromTakeScreenshot(filename) {
|
|
247
245
|
return 'MediaPlayer_takeScreenshot_3a2037f';
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
}
|
|
247
|
+
selectInternalSubtitle(index) {
|
|
248
|
+
const apiType = this.getApiTypeFromSelectInternalSubtitle(index);
|
|
249
|
+
const jsonParams = {
|
|
252
250
|
index: index,
|
|
253
|
-
toJSON:
|
|
251
|
+
toJSON: () => {
|
|
254
252
|
return {
|
|
255
253
|
index: index,
|
|
256
254
|
};
|
|
257
255
|
},
|
|
258
256
|
};
|
|
259
|
-
|
|
257
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
260
258
|
return jsonResults.result;
|
|
261
|
-
}
|
|
262
|
-
|
|
259
|
+
}
|
|
260
|
+
getApiTypeFromSelectInternalSubtitle(index) {
|
|
263
261
|
return 'MediaPlayer_selectInternalSubtitle_46f8ab7';
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
262
|
+
}
|
|
263
|
+
setExternalSubtitle(url) {
|
|
264
|
+
const apiType = this.getApiTypeFromSetExternalSubtitle(url);
|
|
265
|
+
const jsonParams = {
|
|
268
266
|
url: url,
|
|
269
|
-
toJSON:
|
|
267
|
+
toJSON: () => {
|
|
270
268
|
return {
|
|
271
269
|
url: url,
|
|
272
270
|
};
|
|
273
271
|
},
|
|
274
272
|
};
|
|
275
|
-
|
|
273
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
276
274
|
return jsonResults.result;
|
|
277
|
-
}
|
|
278
|
-
|
|
275
|
+
}
|
|
276
|
+
getApiTypeFromSetExternalSubtitle(url) {
|
|
279
277
|
return 'MediaPlayer_setExternalSubtitle_3a2037f';
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
return jsonResults.result;
|
|
286
|
-
}
|
|
287
|
-
|
|
278
|
+
}
|
|
279
|
+
getState() {
|
|
280
|
+
const apiType = this.getApiTypeFromGetState();
|
|
281
|
+
const jsonParams = {};
|
|
282
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
283
|
+
return jsonResults.result;
|
|
284
|
+
}
|
|
285
|
+
getApiTypeFromGetState() {
|
|
288
286
|
return 'MediaPlayer_getState';
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
287
|
+
}
|
|
288
|
+
mute(muted) {
|
|
289
|
+
const apiType = this.getApiTypeFromMute(muted);
|
|
290
|
+
const jsonParams = {
|
|
293
291
|
muted: muted,
|
|
294
|
-
toJSON:
|
|
292
|
+
toJSON: () => {
|
|
295
293
|
return {
|
|
296
294
|
muted: muted,
|
|
297
295
|
};
|
|
298
296
|
},
|
|
299
297
|
};
|
|
300
|
-
|
|
298
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
301
299
|
return jsonResults.result;
|
|
302
|
-
}
|
|
303
|
-
|
|
300
|
+
}
|
|
301
|
+
getApiTypeFromMute(muted) {
|
|
304
302
|
return 'MediaPlayer_mute_5039d15';
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
303
|
+
}
|
|
304
|
+
getMute() {
|
|
305
|
+
const apiType = this.getApiTypeFromGetMute();
|
|
306
|
+
const jsonParams = {};
|
|
307
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
308
|
+
const muted = jsonResults.muted;
|
|
311
309
|
return muted;
|
|
312
|
-
}
|
|
313
|
-
|
|
310
|
+
}
|
|
311
|
+
getApiTypeFromGetMute() {
|
|
314
312
|
return 'MediaPlayer_getMute_c93e9d4';
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
313
|
+
}
|
|
314
|
+
adjustPlayoutVolume(volume) {
|
|
315
|
+
const apiType = this.getApiTypeFromAdjustPlayoutVolume(volume);
|
|
316
|
+
const jsonParams = {
|
|
319
317
|
volume: volume,
|
|
320
|
-
toJSON:
|
|
318
|
+
toJSON: () => {
|
|
321
319
|
return {
|
|
322
320
|
volume: volume,
|
|
323
321
|
};
|
|
324
322
|
},
|
|
325
323
|
};
|
|
326
|
-
|
|
324
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
327
325
|
return jsonResults.result;
|
|
328
|
-
}
|
|
329
|
-
|
|
326
|
+
}
|
|
327
|
+
getApiTypeFromAdjustPlayoutVolume(volume) {
|
|
330
328
|
return 'MediaPlayer_adjustPlayoutVolume_46f8ab7';
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
329
|
+
}
|
|
330
|
+
getPlayoutVolume() {
|
|
331
|
+
const apiType = this.getApiTypeFromGetPlayoutVolume();
|
|
332
|
+
const jsonParams = {};
|
|
333
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
334
|
+
const volume = jsonResults.volume;
|
|
337
335
|
return volume;
|
|
338
|
-
}
|
|
339
|
-
|
|
336
|
+
}
|
|
337
|
+
getApiTypeFromGetPlayoutVolume() {
|
|
340
338
|
return 'MediaPlayer_getPlayoutVolume_9cfaa7e';
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
339
|
+
}
|
|
340
|
+
adjustPublishSignalVolume(volume) {
|
|
341
|
+
const apiType = this.getApiTypeFromAdjustPublishSignalVolume(volume);
|
|
342
|
+
const jsonParams = {
|
|
345
343
|
volume: volume,
|
|
346
|
-
toJSON:
|
|
344
|
+
toJSON: () => {
|
|
347
345
|
return {
|
|
348
346
|
volume: volume,
|
|
349
347
|
};
|
|
350
348
|
},
|
|
351
349
|
};
|
|
352
|
-
|
|
350
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
353
351
|
return jsonResults.result;
|
|
354
|
-
}
|
|
355
|
-
|
|
352
|
+
}
|
|
353
|
+
getApiTypeFromAdjustPublishSignalVolume(volume) {
|
|
356
354
|
return 'MediaPlayer_adjustPublishSignalVolume_46f8ab7';
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
355
|
+
}
|
|
356
|
+
getPublishSignalVolume() {
|
|
357
|
+
const apiType = this.getApiTypeFromGetPublishSignalVolume();
|
|
358
|
+
const jsonParams = {};
|
|
359
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
360
|
+
const volume = jsonResults.volume;
|
|
363
361
|
return volume;
|
|
364
|
-
}
|
|
365
|
-
|
|
362
|
+
}
|
|
363
|
+
getApiTypeFromGetPublishSignalVolume() {
|
|
366
364
|
return 'MediaPlayer_getPublishSignalVolume_9cfaa7e';
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
365
|
+
}
|
|
366
|
+
setView(view) {
|
|
367
|
+
const apiType = this.getApiTypeFromSetView(view);
|
|
368
|
+
const jsonParams = {
|
|
371
369
|
view: view,
|
|
372
|
-
toJSON:
|
|
370
|
+
toJSON: () => {
|
|
373
371
|
return {
|
|
374
372
|
view: view,
|
|
375
373
|
};
|
|
376
374
|
},
|
|
377
375
|
};
|
|
378
|
-
|
|
376
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
379
377
|
return jsonResults.result;
|
|
380
|
-
}
|
|
381
|
-
|
|
378
|
+
}
|
|
379
|
+
getApiTypeFromSetView(view) {
|
|
382
380
|
return 'MediaPlayer_setView_cb1a81f';
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
381
|
+
}
|
|
382
|
+
setRenderMode(renderMode) {
|
|
383
|
+
const apiType = this.getApiTypeFromSetRenderMode(renderMode);
|
|
384
|
+
const jsonParams = {
|
|
387
385
|
renderMode: renderMode,
|
|
388
|
-
toJSON:
|
|
386
|
+
toJSON: () => {
|
|
389
387
|
return {
|
|
390
388
|
renderMode: renderMode,
|
|
391
389
|
};
|
|
392
390
|
},
|
|
393
391
|
};
|
|
394
|
-
|
|
392
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
395
393
|
return jsonResults.result;
|
|
396
|
-
}
|
|
397
|
-
|
|
394
|
+
}
|
|
395
|
+
getApiTypeFromSetRenderMode(renderMode) {
|
|
398
396
|
return 'MediaPlayer_setRenderMode_bedb5ae';
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
397
|
+
}
|
|
398
|
+
registerPlayerSourceObserver(observer) {
|
|
399
|
+
const apiType = this.getApiTypeFromRegisterPlayerSourceObserver(observer);
|
|
400
|
+
const jsonParams = {
|
|
403
401
|
observer: observer,
|
|
404
|
-
toJSON:
|
|
402
|
+
toJSON: () => {
|
|
405
403
|
return {};
|
|
406
404
|
},
|
|
407
405
|
};
|
|
408
|
-
|
|
406
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
409
407
|
return jsonResults.result;
|
|
410
|
-
}
|
|
411
|
-
|
|
408
|
+
}
|
|
409
|
+
getApiTypeFromRegisterPlayerSourceObserver(observer) {
|
|
412
410
|
return 'MediaPlayer_registerPlayerSourceObserver_15621d7';
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
411
|
+
}
|
|
412
|
+
unregisterPlayerSourceObserver(observer) {
|
|
413
|
+
const apiType = this.getApiTypeFromUnregisterPlayerSourceObserver(observer);
|
|
414
|
+
const jsonParams = {
|
|
417
415
|
observer: observer,
|
|
418
|
-
toJSON:
|
|
416
|
+
toJSON: () => {
|
|
419
417
|
return {};
|
|
420
418
|
},
|
|
421
419
|
};
|
|
422
|
-
|
|
420
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
423
421
|
return jsonResults.result;
|
|
424
|
-
}
|
|
425
|
-
|
|
422
|
+
}
|
|
423
|
+
getApiTypeFromUnregisterPlayerSourceObserver(observer) {
|
|
426
424
|
return 'MediaPlayer_unregisterPlayerSourceObserver_15621d7';
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
var jsonParams = {
|
|
425
|
+
}
|
|
426
|
+
registerAudioFrameObserver(observer, mode = AgoraMediaBase_1.RawAudioFrameOpModeType.RawAudioFrameOpModeReadOnly) {
|
|
427
|
+
const apiType = this.getApiTypeFromRegisterAudioFrameObserver(observer, mode);
|
|
428
|
+
const jsonParams = {
|
|
432
429
|
observer: observer,
|
|
433
430
|
mode: mode,
|
|
434
|
-
toJSON:
|
|
431
|
+
toJSON: () => {
|
|
435
432
|
return {
|
|
436
433
|
mode: mode,
|
|
437
434
|
};
|
|
438
435
|
},
|
|
439
436
|
};
|
|
440
|
-
|
|
437
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
441
438
|
return jsonResults.result;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
if (mode === void 0) { mode = AgoraMediaBase_1.RawAudioFrameOpModeType.RawAudioFrameOpModeReadOnly; }
|
|
439
|
+
}
|
|
440
|
+
getApiTypeFromRegisterAudioFrameObserver(observer, mode = AgoraMediaBase_1.RawAudioFrameOpModeType.RawAudioFrameOpModeReadOnly) {
|
|
445
441
|
return 'MediaPlayer_registerAudioFrameObserver_a5b510b';
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
442
|
+
}
|
|
443
|
+
unregisterAudioFrameObserver(observer) {
|
|
444
|
+
const apiType = this.getApiTypeFromUnregisterAudioFrameObserver(observer);
|
|
445
|
+
const jsonParams = {
|
|
450
446
|
observer: observer,
|
|
451
|
-
toJSON:
|
|
447
|
+
toJSON: () => {
|
|
452
448
|
return {};
|
|
453
449
|
},
|
|
454
450
|
};
|
|
455
|
-
|
|
451
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
456
452
|
return jsonResults.result;
|
|
457
|
-
}
|
|
458
|
-
|
|
453
|
+
}
|
|
454
|
+
getApiTypeFromUnregisterAudioFrameObserver(observer) {
|
|
459
455
|
return 'MediaPlayer_unregisterAudioFrameObserver_89ab9b5';
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
456
|
+
}
|
|
457
|
+
registerVideoFrameObserver(observer) {
|
|
458
|
+
const apiType = this.getApiTypeFromRegisterVideoFrameObserver(observer);
|
|
459
|
+
const jsonParams = {
|
|
464
460
|
observer: observer,
|
|
465
|
-
toJSON:
|
|
461
|
+
toJSON: () => {
|
|
466
462
|
return {};
|
|
467
463
|
},
|
|
468
464
|
};
|
|
469
|
-
|
|
465
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
470
466
|
return jsonResults.result;
|
|
471
|
-
}
|
|
472
|
-
|
|
467
|
+
}
|
|
468
|
+
getApiTypeFromRegisterVideoFrameObserver(observer) {
|
|
473
469
|
return 'MediaPlayer_registerVideoFrameObserver_833bd8d';
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
470
|
+
}
|
|
471
|
+
unregisterVideoFrameObserver(observer) {
|
|
472
|
+
const apiType = this.getApiTypeFromUnregisterVideoFrameObserver(observer);
|
|
473
|
+
const jsonParams = {
|
|
478
474
|
observer: observer,
|
|
479
|
-
toJSON:
|
|
475
|
+
toJSON: () => {
|
|
480
476
|
return {};
|
|
481
477
|
},
|
|
482
478
|
};
|
|
483
|
-
|
|
479
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
484
480
|
return jsonResults.result;
|
|
485
|
-
}
|
|
486
|
-
|
|
481
|
+
}
|
|
482
|
+
getApiTypeFromUnregisterVideoFrameObserver(observer) {
|
|
487
483
|
return 'MediaPlayer_unregisterVideoFrameObserver_5165d4c';
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
484
|
+
}
|
|
485
|
+
registerMediaPlayerAudioSpectrumObserver(observer, intervalInMS) {
|
|
486
|
+
const apiType = this.getApiTypeFromRegisterMediaPlayerAudioSpectrumObserver(observer, intervalInMS);
|
|
487
|
+
const jsonParams = {
|
|
492
488
|
observer: observer,
|
|
493
489
|
intervalInMS: intervalInMS,
|
|
494
|
-
toJSON:
|
|
490
|
+
toJSON: () => {
|
|
495
491
|
return {
|
|
496
492
|
intervalInMS: intervalInMS,
|
|
497
493
|
};
|
|
498
494
|
},
|
|
499
495
|
};
|
|
500
|
-
|
|
496
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
501
497
|
return jsonResults.result;
|
|
502
|
-
}
|
|
503
|
-
|
|
498
|
+
}
|
|
499
|
+
getApiTypeFromRegisterMediaPlayerAudioSpectrumObserver(observer, intervalInMS) {
|
|
504
500
|
return 'MediaPlayer_registerMediaPlayerAudioSpectrumObserver_226bb48';
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
501
|
+
}
|
|
502
|
+
unregisterMediaPlayerAudioSpectrumObserver(observer) {
|
|
503
|
+
const apiType = this.getApiTypeFromUnregisterMediaPlayerAudioSpectrumObserver(observer);
|
|
504
|
+
const jsonParams = {
|
|
509
505
|
observer: observer,
|
|
510
|
-
toJSON:
|
|
506
|
+
toJSON: () => {
|
|
511
507
|
return {};
|
|
512
508
|
},
|
|
513
509
|
};
|
|
514
|
-
|
|
510
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
515
511
|
return jsonResults.result;
|
|
516
|
-
}
|
|
517
|
-
|
|
512
|
+
}
|
|
513
|
+
getApiTypeFromUnregisterMediaPlayerAudioSpectrumObserver(observer) {
|
|
518
514
|
return 'MediaPlayer_unregisterMediaPlayerAudioSpectrumObserver_09064ce';
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
515
|
+
}
|
|
516
|
+
setAudioDualMonoMode(mode) {
|
|
517
|
+
const apiType = this.getApiTypeFromSetAudioDualMonoMode(mode);
|
|
518
|
+
const jsonParams = {
|
|
523
519
|
mode: mode,
|
|
524
|
-
toJSON:
|
|
520
|
+
toJSON: () => {
|
|
525
521
|
return {
|
|
526
522
|
mode: mode,
|
|
527
523
|
};
|
|
528
524
|
},
|
|
529
525
|
};
|
|
530
|
-
|
|
526
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
531
527
|
return jsonResults.result;
|
|
532
|
-
}
|
|
533
|
-
|
|
528
|
+
}
|
|
529
|
+
getApiTypeFromSetAudioDualMonoMode(mode) {
|
|
534
530
|
return 'MediaPlayer_setAudioDualMonoMode_30c9672';
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
return jsonResults.result;
|
|
541
|
-
}
|
|
542
|
-
|
|
531
|
+
}
|
|
532
|
+
getPlayerSdkVersion() {
|
|
533
|
+
const apiType = this.getApiTypeFromGetPlayerSdkVersion();
|
|
534
|
+
const jsonParams = {};
|
|
535
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
536
|
+
return jsonResults.result;
|
|
537
|
+
}
|
|
538
|
+
getApiTypeFromGetPlayerSdkVersion() {
|
|
543
539
|
return 'MediaPlayer_getPlayerSdkVersion';
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
return jsonResults.result;
|
|
550
|
-
}
|
|
551
|
-
|
|
540
|
+
}
|
|
541
|
+
getPlaySrc() {
|
|
542
|
+
const apiType = this.getApiTypeFromGetPlaySrc();
|
|
543
|
+
const jsonParams = {};
|
|
544
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
545
|
+
return jsonResults.result;
|
|
546
|
+
}
|
|
547
|
+
getApiTypeFromGetPlaySrc() {
|
|
552
548
|
return 'MediaPlayer_getPlaySrc';
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
549
|
+
}
|
|
550
|
+
openWithAgoraCDNSrc(src, startPos) {
|
|
551
|
+
const apiType = this.getApiTypeFromOpenWithAgoraCDNSrc(src, startPos);
|
|
552
|
+
const jsonParams = {
|
|
557
553
|
src: src,
|
|
558
554
|
startPos: startPos,
|
|
559
|
-
toJSON:
|
|
555
|
+
toJSON: () => {
|
|
560
556
|
return {
|
|
561
557
|
src: src,
|
|
562
558
|
startPos: startPos,
|
|
563
559
|
};
|
|
564
560
|
},
|
|
565
561
|
};
|
|
566
|
-
|
|
562
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
567
563
|
return jsonResults.result;
|
|
568
|
-
}
|
|
569
|
-
|
|
564
|
+
}
|
|
565
|
+
getApiTypeFromOpenWithAgoraCDNSrc(src, startPos) {
|
|
570
566
|
return 'MediaPlayer_openWithAgoraCDNSrc_e43f201';
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
return jsonResults.result;
|
|
577
|
-
}
|
|
578
|
-
|
|
567
|
+
}
|
|
568
|
+
getAgoraCDNLineCount() {
|
|
569
|
+
const apiType = this.getApiTypeFromGetAgoraCDNLineCount();
|
|
570
|
+
const jsonParams = {};
|
|
571
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
572
|
+
return jsonResults.result;
|
|
573
|
+
}
|
|
574
|
+
getApiTypeFromGetAgoraCDNLineCount() {
|
|
579
575
|
return 'MediaPlayer_getAgoraCDNLineCount';
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
576
|
+
}
|
|
577
|
+
switchAgoraCDNLineByIndex(index) {
|
|
578
|
+
const apiType = this.getApiTypeFromSwitchAgoraCDNLineByIndex(index);
|
|
579
|
+
const jsonParams = {
|
|
584
580
|
index: index,
|
|
585
|
-
toJSON:
|
|
581
|
+
toJSON: () => {
|
|
586
582
|
return {
|
|
587
583
|
index: index,
|
|
588
584
|
};
|
|
589
585
|
},
|
|
590
586
|
};
|
|
591
|
-
|
|
587
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
592
588
|
return jsonResults.result;
|
|
593
|
-
}
|
|
594
|
-
|
|
589
|
+
}
|
|
590
|
+
getApiTypeFromSwitchAgoraCDNLineByIndex(index) {
|
|
595
591
|
return 'MediaPlayer_switchAgoraCDNLineByIndex_46f8ab7';
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
return jsonResults.result;
|
|
602
|
-
}
|
|
603
|
-
|
|
592
|
+
}
|
|
593
|
+
getCurrentAgoraCDNIndex() {
|
|
594
|
+
const apiType = this.getApiTypeFromGetCurrentAgoraCDNIndex();
|
|
595
|
+
const jsonParams = {};
|
|
596
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
597
|
+
return jsonResults.result;
|
|
598
|
+
}
|
|
599
|
+
getApiTypeFromGetCurrentAgoraCDNIndex() {
|
|
604
600
|
return 'MediaPlayer_getCurrentAgoraCDNIndex';
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
601
|
+
}
|
|
602
|
+
enableAutoSwitchAgoraCDN(enable) {
|
|
603
|
+
const apiType = this.getApiTypeFromEnableAutoSwitchAgoraCDN(enable);
|
|
604
|
+
const jsonParams = {
|
|
609
605
|
enable: enable,
|
|
610
|
-
toJSON:
|
|
606
|
+
toJSON: () => {
|
|
611
607
|
return {
|
|
612
608
|
enable: enable,
|
|
613
609
|
};
|
|
614
610
|
},
|
|
615
611
|
};
|
|
616
|
-
|
|
612
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
617
613
|
return jsonResults.result;
|
|
618
|
-
}
|
|
619
|
-
|
|
614
|
+
}
|
|
615
|
+
getApiTypeFromEnableAutoSwitchAgoraCDN(enable) {
|
|
620
616
|
return 'MediaPlayer_enableAutoSwitchAgoraCDN_5039d15';
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
617
|
+
}
|
|
618
|
+
renewAgoraCDNSrcToken(token, ts) {
|
|
619
|
+
const apiType = this.getApiTypeFromRenewAgoraCDNSrcToken(token, ts);
|
|
620
|
+
const jsonParams = {
|
|
625
621
|
token: token,
|
|
626
622
|
ts: ts,
|
|
627
|
-
toJSON:
|
|
623
|
+
toJSON: () => {
|
|
628
624
|
return {
|
|
629
625
|
token: token,
|
|
630
626
|
ts: ts,
|
|
631
627
|
};
|
|
632
628
|
},
|
|
633
629
|
};
|
|
634
|
-
|
|
630
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
635
631
|
return jsonResults.result;
|
|
636
|
-
}
|
|
637
|
-
|
|
632
|
+
}
|
|
633
|
+
getApiTypeFromRenewAgoraCDNSrcToken(token, ts) {
|
|
638
634
|
return 'MediaPlayer_renewAgoraCDNSrcToken_e43f201';
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
var jsonParams = {
|
|
635
|
+
}
|
|
636
|
+
switchAgoraCDNSrc(src, syncPts = false) {
|
|
637
|
+
const apiType = this.getApiTypeFromSwitchAgoraCDNSrc(src, syncPts);
|
|
638
|
+
const jsonParams = {
|
|
644
639
|
src: src,
|
|
645
640
|
syncPts: syncPts,
|
|
646
|
-
toJSON:
|
|
641
|
+
toJSON: () => {
|
|
647
642
|
return {
|
|
648
643
|
src: src,
|
|
649
644
|
syncPts: syncPts,
|
|
650
645
|
};
|
|
651
646
|
},
|
|
652
647
|
};
|
|
653
|
-
|
|
648
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
654
649
|
return jsonResults.result;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
if (syncPts === void 0) { syncPts = false; }
|
|
650
|
+
}
|
|
651
|
+
getApiTypeFromSwitchAgoraCDNSrc(src, syncPts = false) {
|
|
658
652
|
return 'MediaPlayer_switchAgoraCDNSrc_7a174df';
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
var jsonParams = {
|
|
653
|
+
}
|
|
654
|
+
switchSrc(src, syncPts = true) {
|
|
655
|
+
const apiType = this.getApiTypeFromSwitchSrc(src, syncPts);
|
|
656
|
+
const jsonParams = {
|
|
664
657
|
src: src,
|
|
665
658
|
syncPts: syncPts,
|
|
666
|
-
toJSON:
|
|
659
|
+
toJSON: () => {
|
|
667
660
|
return {
|
|
668
661
|
src: src,
|
|
669
662
|
syncPts: syncPts,
|
|
670
663
|
};
|
|
671
664
|
},
|
|
672
665
|
};
|
|
673
|
-
|
|
666
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
674
667
|
return jsonResults.result;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
if (syncPts === void 0) { syncPts = true; }
|
|
668
|
+
}
|
|
669
|
+
getApiTypeFromSwitchSrc(src, syncPts = true) {
|
|
678
670
|
return 'MediaPlayer_switchSrc_7a174df';
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
671
|
+
}
|
|
672
|
+
preloadSrc(src, startPos) {
|
|
673
|
+
const apiType = this.getApiTypeFromPreloadSrc(src, startPos);
|
|
674
|
+
const jsonParams = {
|
|
683
675
|
src: src,
|
|
684
676
|
startPos: startPos,
|
|
685
|
-
toJSON:
|
|
677
|
+
toJSON: () => {
|
|
686
678
|
return {
|
|
687
679
|
src: src,
|
|
688
680
|
startPos: startPos,
|
|
689
681
|
};
|
|
690
682
|
},
|
|
691
683
|
};
|
|
692
|
-
|
|
684
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
693
685
|
return jsonResults.result;
|
|
694
|
-
}
|
|
695
|
-
|
|
686
|
+
}
|
|
687
|
+
getApiTypeFromPreloadSrc(src, startPos) {
|
|
696
688
|
return 'MediaPlayer_preloadSrc_e43f201';
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
689
|
+
}
|
|
690
|
+
playPreloadedSrc(src) {
|
|
691
|
+
const apiType = this.getApiTypeFromPlayPreloadedSrc(src);
|
|
692
|
+
const jsonParams = {
|
|
701
693
|
src: src,
|
|
702
|
-
toJSON:
|
|
694
|
+
toJSON: () => {
|
|
703
695
|
return {
|
|
704
696
|
src: src,
|
|
705
697
|
};
|
|
706
698
|
},
|
|
707
699
|
};
|
|
708
|
-
|
|
700
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
709
701
|
return jsonResults.result;
|
|
710
|
-
}
|
|
711
|
-
|
|
702
|
+
}
|
|
703
|
+
getApiTypeFromPlayPreloadedSrc(src) {
|
|
712
704
|
return 'MediaPlayer_playPreloadedSrc_3a2037f';
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
705
|
+
}
|
|
706
|
+
unloadSrc(src) {
|
|
707
|
+
const apiType = this.getApiTypeFromUnloadSrc(src);
|
|
708
|
+
const jsonParams = {
|
|
717
709
|
src: src,
|
|
718
|
-
toJSON:
|
|
710
|
+
toJSON: () => {
|
|
719
711
|
return {
|
|
720
712
|
src: src,
|
|
721
713
|
};
|
|
722
714
|
},
|
|
723
715
|
};
|
|
724
|
-
|
|
716
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
725
717
|
return jsonResults.result;
|
|
726
|
-
}
|
|
727
|
-
|
|
718
|
+
}
|
|
719
|
+
getApiTypeFromUnloadSrc(src) {
|
|
728
720
|
return 'MediaPlayer_unloadSrc_3a2037f';
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
721
|
+
}
|
|
722
|
+
setSpatialAudioParams(params) {
|
|
723
|
+
const apiType = this.getApiTypeFromSetSpatialAudioParams(params);
|
|
724
|
+
const jsonParams = {
|
|
733
725
|
params: params,
|
|
734
|
-
toJSON:
|
|
726
|
+
toJSON: () => {
|
|
735
727
|
return {
|
|
736
728
|
params: params,
|
|
737
729
|
};
|
|
738
730
|
},
|
|
739
731
|
};
|
|
740
|
-
|
|
732
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
741
733
|
return jsonResults.result;
|
|
742
|
-
}
|
|
743
|
-
|
|
734
|
+
}
|
|
735
|
+
getApiTypeFromSetSpatialAudioParams(params) {
|
|
744
736
|
return 'MediaPlayer_setSpatialAudioParams_5035667';
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
737
|
+
}
|
|
738
|
+
setSoundPositionParams(pan, gain) {
|
|
739
|
+
const apiType = this.getApiTypeFromSetSoundPositionParams(pan, gain);
|
|
740
|
+
const jsonParams = {
|
|
749
741
|
pan: pan,
|
|
750
742
|
gain: gain,
|
|
751
|
-
toJSON:
|
|
743
|
+
toJSON: () => {
|
|
752
744
|
return {
|
|
753
745
|
pan: pan,
|
|
754
746
|
gain: gain,
|
|
755
747
|
};
|
|
756
748
|
},
|
|
757
749
|
};
|
|
758
|
-
|
|
750
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
759
751
|
return jsonResults.result;
|
|
760
|
-
}
|
|
761
|
-
|
|
752
|
+
}
|
|
753
|
+
getApiTypeFromSetSoundPositionParams(pan, gain) {
|
|
762
754
|
return 'MediaPlayer_setSoundPositionParams_f282d50';
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
755
|
+
}
|
|
756
|
+
setPlayerOptionInInt(key, value) {
|
|
757
|
+
const apiType = this.getApiTypeFromSetPlayerOptionInInt(key, value);
|
|
758
|
+
const jsonParams = {
|
|
767
759
|
key: key,
|
|
768
760
|
value: value,
|
|
769
|
-
toJSON:
|
|
761
|
+
toJSON: () => {
|
|
770
762
|
return {
|
|
771
763
|
key: key,
|
|
772
764
|
value: value,
|
|
773
765
|
};
|
|
774
766
|
},
|
|
775
767
|
};
|
|
776
|
-
|
|
768
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
777
769
|
return jsonResults.result;
|
|
778
|
-
}
|
|
779
|
-
|
|
770
|
+
}
|
|
771
|
+
getApiTypeFromSetPlayerOptionInInt(key, value) {
|
|
780
772
|
return 'MediaPlayer_setPlayerOption_4d05d29';
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
773
|
+
}
|
|
774
|
+
setPlayerOptionInString(key, value) {
|
|
775
|
+
const apiType = this.getApiTypeFromSetPlayerOptionInString(key, value);
|
|
776
|
+
const jsonParams = {
|
|
785
777
|
key: key,
|
|
786
778
|
value: value,
|
|
787
|
-
toJSON:
|
|
779
|
+
toJSON: () => {
|
|
788
780
|
return {
|
|
789
781
|
key: key,
|
|
790
782
|
value: value,
|
|
791
783
|
};
|
|
792
784
|
},
|
|
793
785
|
};
|
|
794
|
-
|
|
786
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
795
787
|
return jsonResults.result;
|
|
796
|
-
}
|
|
797
|
-
|
|
788
|
+
}
|
|
789
|
+
getApiTypeFromSetPlayerOptionInString(key, value) {
|
|
798
790
|
return 'MediaPlayer_setPlayerOption_ccad422';
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
}());
|
|
791
|
+
}
|
|
792
|
+
}
|
|
802
793
|
exports.IMediaPlayerImpl = IMediaPlayerImpl;
|
|
803
794
|
// @ts-ignore
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
var jsonParams = {};
|
|
810
|
-
var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
795
|
+
class IMediaPlayerCacheManagerImpl {
|
|
796
|
+
removeAllCaches() {
|
|
797
|
+
const apiType = this.getApiTypeFromRemoveAllCaches();
|
|
798
|
+
const jsonParams = {};
|
|
799
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
811
800
|
return jsonResults.result;
|
|
812
|
-
}
|
|
813
|
-
|
|
801
|
+
}
|
|
802
|
+
getApiTypeFromRemoveAllCaches() {
|
|
814
803
|
return 'MediaPlayerCacheManager_removeAllCaches';
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
return jsonResults.result;
|
|
821
|
-
}
|
|
822
|
-
|
|
804
|
+
}
|
|
805
|
+
removeOldCache() {
|
|
806
|
+
const apiType = this.getApiTypeFromRemoveOldCache();
|
|
807
|
+
const jsonParams = {};
|
|
808
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
809
|
+
return jsonResults.result;
|
|
810
|
+
}
|
|
811
|
+
getApiTypeFromRemoveOldCache() {
|
|
823
812
|
return 'MediaPlayerCacheManager_removeOldCache';
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
813
|
+
}
|
|
814
|
+
removeCacheByUri(uri) {
|
|
815
|
+
const apiType = this.getApiTypeFromRemoveCacheByUri(uri);
|
|
816
|
+
const jsonParams = {
|
|
828
817
|
uri: uri,
|
|
829
|
-
toJSON:
|
|
818
|
+
toJSON: () => {
|
|
830
819
|
return {
|
|
831
820
|
uri: uri,
|
|
832
821
|
};
|
|
833
822
|
},
|
|
834
823
|
};
|
|
835
|
-
|
|
824
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
836
825
|
return jsonResults.result;
|
|
837
|
-
}
|
|
838
|
-
|
|
826
|
+
}
|
|
827
|
+
getApiTypeFromRemoveCacheByUri(uri) {
|
|
839
828
|
return 'MediaPlayerCacheManager_removeCacheByUri_3a2037f';
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
829
|
+
}
|
|
830
|
+
setCacheDir(path) {
|
|
831
|
+
const apiType = this.getApiTypeFromSetCacheDir(path);
|
|
832
|
+
const jsonParams = {
|
|
844
833
|
path: path,
|
|
845
|
-
toJSON:
|
|
834
|
+
toJSON: () => {
|
|
846
835
|
return {
|
|
847
836
|
path: path,
|
|
848
837
|
};
|
|
849
838
|
},
|
|
850
839
|
};
|
|
851
|
-
|
|
840
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
852
841
|
return jsonResults.result;
|
|
853
|
-
}
|
|
854
|
-
|
|
842
|
+
}
|
|
843
|
+
getApiTypeFromSetCacheDir(path) {
|
|
855
844
|
return 'MediaPlayerCacheManager_setCacheDir_3a2037f';
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
845
|
+
}
|
|
846
|
+
setMaxCacheFileCount(count) {
|
|
847
|
+
const apiType = this.getApiTypeFromSetMaxCacheFileCount(count);
|
|
848
|
+
const jsonParams = {
|
|
860
849
|
count: count,
|
|
861
|
-
toJSON:
|
|
850
|
+
toJSON: () => {
|
|
862
851
|
return {
|
|
863
852
|
count: count,
|
|
864
853
|
};
|
|
865
854
|
},
|
|
866
855
|
};
|
|
867
|
-
|
|
856
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
868
857
|
return jsonResults.result;
|
|
869
|
-
}
|
|
870
|
-
|
|
858
|
+
}
|
|
859
|
+
getApiTypeFromSetMaxCacheFileCount(count) {
|
|
871
860
|
return 'MediaPlayerCacheManager_setMaxCacheFileCount_46f8ab7';
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
861
|
+
}
|
|
862
|
+
setMaxCacheFileSize(cacheSize) {
|
|
863
|
+
const apiType = this.getApiTypeFromSetMaxCacheFileSize(cacheSize);
|
|
864
|
+
const jsonParams = {
|
|
876
865
|
cacheSize: cacheSize,
|
|
877
|
-
toJSON:
|
|
866
|
+
toJSON: () => {
|
|
878
867
|
return {
|
|
879
868
|
cacheSize: cacheSize,
|
|
880
869
|
};
|
|
881
870
|
},
|
|
882
871
|
};
|
|
883
|
-
|
|
872
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
884
873
|
return jsonResults.result;
|
|
885
|
-
}
|
|
886
|
-
|
|
874
|
+
}
|
|
875
|
+
getApiTypeFromSetMaxCacheFileSize(cacheSize) {
|
|
887
876
|
return 'MediaPlayerCacheManager_setMaxCacheFileSize_f631116';
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
877
|
+
}
|
|
878
|
+
enableAutoRemoveCache(enable) {
|
|
879
|
+
const apiType = this.getApiTypeFromEnableAutoRemoveCache(enable);
|
|
880
|
+
const jsonParams = {
|
|
892
881
|
enable: enable,
|
|
893
|
-
toJSON:
|
|
882
|
+
toJSON: () => {
|
|
894
883
|
return {
|
|
895
884
|
enable: enable,
|
|
896
885
|
};
|
|
897
886
|
},
|
|
898
887
|
};
|
|
899
|
-
|
|
888
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
900
889
|
return jsonResults.result;
|
|
901
|
-
}
|
|
902
|
-
|
|
890
|
+
}
|
|
891
|
+
getApiTypeFromEnableAutoRemoveCache(enable) {
|
|
903
892
|
return 'MediaPlayerCacheManager_enableAutoRemoveCache_5039d15';
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
893
|
+
}
|
|
894
|
+
getCacheDir(length) {
|
|
895
|
+
const apiType = this.getApiTypeFromGetCacheDir(length);
|
|
896
|
+
const jsonParams = {
|
|
908
897
|
length: length,
|
|
909
|
-
toJSON:
|
|
898
|
+
toJSON: () => {
|
|
910
899
|
return {
|
|
911
900
|
length: length,
|
|
912
901
|
};
|
|
913
902
|
},
|
|
914
903
|
};
|
|
915
|
-
|
|
916
|
-
|
|
904
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
905
|
+
const path = jsonResults.path;
|
|
917
906
|
return path;
|
|
918
|
-
}
|
|
919
|
-
|
|
907
|
+
}
|
|
908
|
+
getApiTypeFromGetCacheDir(length) {
|
|
920
909
|
return 'MediaPlayerCacheManager_getCacheDir_c9551e8';
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
return jsonResults.result;
|
|
927
|
-
}
|
|
928
|
-
|
|
910
|
+
}
|
|
911
|
+
getMaxCacheFileCount() {
|
|
912
|
+
const apiType = this.getApiTypeFromGetMaxCacheFileCount();
|
|
913
|
+
const jsonParams = {};
|
|
914
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
915
|
+
return jsonResults.result;
|
|
916
|
+
}
|
|
917
|
+
getApiTypeFromGetMaxCacheFileCount() {
|
|
929
918
|
return 'MediaPlayerCacheManager_getMaxCacheFileCount';
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
return jsonResults.result;
|
|
936
|
-
}
|
|
937
|
-
|
|
919
|
+
}
|
|
920
|
+
getMaxCacheFileSize() {
|
|
921
|
+
const apiType = this.getApiTypeFromGetMaxCacheFileSize();
|
|
922
|
+
const jsonParams = {};
|
|
923
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
924
|
+
return jsonResults.result;
|
|
925
|
+
}
|
|
926
|
+
getApiTypeFromGetMaxCacheFileSize() {
|
|
938
927
|
return 'MediaPlayerCacheManager_getMaxCacheFileSize';
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
return jsonResults.result;
|
|
945
|
-
}
|
|
946
|
-
|
|
928
|
+
}
|
|
929
|
+
getCacheFileCount() {
|
|
930
|
+
const apiType = this.getApiTypeFromGetCacheFileCount();
|
|
931
|
+
const jsonParams = {};
|
|
932
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
933
|
+
return jsonResults.result;
|
|
934
|
+
}
|
|
935
|
+
getApiTypeFromGetCacheFileCount() {
|
|
947
936
|
return 'MediaPlayerCacheManager_getCacheFileCount';
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
}());
|
|
937
|
+
}
|
|
938
|
+
}
|
|
951
939
|
exports.IMediaPlayerCacheManagerImpl = IMediaPlayerCacheManagerImpl;
|
|
952
940
|
function processIMediaPlayerVideoFrameObserver(handler, event, jsonParams) {
|
|
953
941
|
switch (event) {
|
|
@@ -959,4 +947,4 @@ function processIMediaPlayerVideoFrameObserver(handler, event, jsonParams) {
|
|
|
959
947
|
}
|
|
960
948
|
}
|
|
961
949
|
exports.processIMediaPlayerVideoFrameObserver = processIMediaPlayerVideoFrameObserver;
|
|
962
|
-
|
|
950
|
+
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|