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