agora-electron-sdk 4.3.2 → 4.4.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/gulpfile.js +3 -1
  2. package/js/AgoraSdk.js +4 -4
  3. package/js/Private/AgoraBase.js +367 -326
  4. package/js/Private/AgoraMediaBase.js +265 -76
  5. package/js/Private/AgoraMediaPlayerTypes.js +12 -30
  6. package/js/Private/IAgoraH265Transcoder.js +2 -5
  7. package/js/Private/IAgoraLog.js +2 -5
  8. package/js/Private/IAgoraMediaEngine.js +2 -5
  9. package/js/Private/IAgoraMediaPlayer.js +4 -10
  10. package/js/Private/IAgoraMediaRecorder.js +2 -5
  11. package/js/Private/IAgoraMediaStreamingSource.js +2 -5
  12. package/js/Private/IAgoraMusicContentCenter.js +21 -68
  13. package/js/Private/IAgoraRhythmPlayer.js +2 -5
  14. package/js/Private/IAgoraRtcEngine.js +76 -130
  15. package/js/Private/IAgoraRtcEngineEx.js +5 -28
  16. package/js/Private/IAgoraSpatialAudio.js +6 -15
  17. package/js/Private/IAudioDeviceManager.js +2 -5
  18. package/js/Private/impl/AgoraMediaBaseImpl.js +11 -14
  19. package/js/Private/impl/IAgoraH265TranscoderImpl.js +43 -46
  20. package/js/Private/impl/IAgoraMediaEngineImpl.js +155 -172
  21. package/js/Private/impl/IAgoraMediaPlayerImpl.js +534 -546
  22. package/js/Private/impl/IAgoraMediaRecorderImpl.js +26 -29
  23. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +218 -251
  24. package/js/Private/impl/IAgoraRtcEngineExImpl.js +434 -436
  25. package/js/Private/impl/IAgoraRtcEngineImpl.js +2445 -2423
  26. package/js/Private/impl/IAgoraSpatialAudioImpl.js +167 -170
  27. package/js/Private/impl/IAudioDeviceManagerImpl.js +232 -235
  28. package/js/Private/internal/AgoraH265TranscoderInternal.js +33 -57
  29. package/js/Private/internal/AgoraMediaBaseInternal.js +9 -28
  30. package/js/Private/internal/AudioDeviceManagerInternal.js +24 -44
  31. package/js/Private/internal/IrisApiEngine.js +94 -145
  32. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +3 -23
  33. package/js/Private/internal/MediaEngineInternal.js +69 -94
  34. package/js/Private/internal/MediaPlayerInternal.js +105 -125
  35. package/js/Private/internal/MediaRecorderInternal.js +37 -64
  36. package/js/Private/internal/MusicContentCenterInternal.js +92 -129
  37. package/js/Private/internal/RtcEngineExInternal.js +213 -243
  38. package/js/Private/ti/AgoraBase-ti.js +2 -2
  39. package/js/Private/ti/AgoraMediaBase-ti.js +2 -2
  40. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
  41. package/js/Private/ti/IAgoraH265Transcoder-ti.js +2 -2
  42. package/js/Private/ti/IAgoraLog-ti.js +1 -1
  43. package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
  44. package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
  45. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
  46. package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
  47. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
  48. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +2 -2
  49. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
  50. package/js/Private/ti/IAgoraRtcEngine-ti.js +7 -7
  51. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
  52. package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
  53. package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
  54. package/js/Renderer/AgoraView.js +100 -145
  55. package/js/Renderer/IRenderer.js +43 -53
  56. package/js/Renderer/IRendererManager.js +106 -132
  57. package/js/Renderer/RendererCache.js +63 -96
  58. package/js/Renderer/RendererManager.js +35 -69
  59. package/js/Renderer/WebGLRenderer/index.js +77 -106
  60. package/js/Renderer/YUVCanvasRenderer/index.js +18 -40
  61. package/js/Utils.js +45 -64
  62. package/package.json +9 -7
  63. package/scripts/checkElectron.js +41 -0
  64. package/scripts/downloadPrebuild.js +56 -24
  65. package/scripts/synclib.js +6 -6
  66. package/ts/Private/AgoraBase.ts +269 -4
  67. package/ts/Private/AgoraMediaBase.ts +343 -1
  68. package/ts/Private/IAgoraMediaEngine.ts +3 -3
  69. package/ts/Private/IAgoraRtcEngine.ts +130 -119
  70. package/ts/Private/IAgoraRtcEngineEx.ts +14 -9
  71. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
  72. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -61
  73. package/ts/Private/internal/IrisApiEngine.ts +3 -7
  74. package/ts/Private/internal/MediaEngineInternal.ts +0 -1
  75. package/ts/Private/internal/RtcEngineExInternal.ts +8 -4
  76. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
  77. package/ts/Renderer/IRenderer.ts +1 -2
  78. package/ts/Renderer/IRendererManager.ts +21 -12
  79. package/ts/Utils.ts +15 -0
  80. package/types/Private/AgoraBase.d.ts +264 -8
  81. package/types/Private/AgoraBase.d.ts.map +1 -1
  82. package/types/Private/AgoraMediaBase.d.ts +336 -1
  83. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  84. package/types/Private/IAgoraMediaEngine.d.ts +3 -3
  85. package/types/Private/IAgoraRtcEngine.d.ts +106 -116
  86. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  87. package/types/Private/IAgoraRtcEngineEx.d.ts +10 -10
  88. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  89. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +3 -1
  90. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
  91. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +13 -5
  92. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  93. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
  94. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
  95. package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
  96. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  97. package/types/Renderer/IRenderer.d.ts.map +1 -1
  98. package/types/Renderer/IRendererManager.d.ts.map +1 -1
  99. package/types/Utils.d.ts +4 -0
  100. package/types/Utils.d.ts.map +1 -1
@@ -2,377 +2,374 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IAudioDeviceManagerImpl = void 0;
4
4
  // @ts-ignore
5
- var IAudioDeviceManagerImpl = /** @class */ (function () {
6
- function IAudioDeviceManagerImpl() {
7
- }
8
- IAudioDeviceManagerImpl.prototype.enumeratePlaybackDevices = function () {
9
- var apiType = this.getApiTypeFromEnumeratePlaybackDevices();
10
- var jsonParams = {};
11
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
5
+ class IAudioDeviceManagerImpl {
6
+ enumeratePlaybackDevices() {
7
+ const apiType = this.getApiTypeFromEnumeratePlaybackDevices();
8
+ const jsonParams = {};
9
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
12
10
  return jsonResults.result;
13
- };
14
- IAudioDeviceManagerImpl.prototype.getApiTypeFromEnumeratePlaybackDevices = function () {
11
+ }
12
+ getApiTypeFromEnumeratePlaybackDevices() {
15
13
  return 'AudioDeviceManager_enumeratePlaybackDevices';
16
- };
17
- IAudioDeviceManagerImpl.prototype.enumerateRecordingDevices = function () {
18
- var apiType = this.getApiTypeFromEnumerateRecordingDevices();
19
- var jsonParams = {};
20
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
14
+ }
15
+ enumerateRecordingDevices() {
16
+ const apiType = this.getApiTypeFromEnumerateRecordingDevices();
17
+ const jsonParams = {};
18
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
21
19
  return jsonResults.result;
22
- };
23
- IAudioDeviceManagerImpl.prototype.getApiTypeFromEnumerateRecordingDevices = function () {
20
+ }
21
+ getApiTypeFromEnumerateRecordingDevices() {
24
22
  return 'AudioDeviceManager_enumerateRecordingDevices';
25
- };
26
- IAudioDeviceManagerImpl.prototype.setPlaybackDevice = function (deviceId) {
27
- var apiType = this.getApiTypeFromSetPlaybackDevice(deviceId);
28
- var jsonParams = {
23
+ }
24
+ setPlaybackDevice(deviceId) {
25
+ const apiType = this.getApiTypeFromSetPlaybackDevice(deviceId);
26
+ const jsonParams = {
29
27
  deviceId: deviceId,
30
- toJSON: function () {
28
+ toJSON: () => {
31
29
  return {
32
30
  deviceId: deviceId,
33
31
  };
34
32
  },
35
33
  };
36
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
34
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
37
35
  return jsonResults.result;
38
- };
39
- IAudioDeviceManagerImpl.prototype.getApiTypeFromSetPlaybackDevice = function (deviceId) {
36
+ }
37
+ getApiTypeFromSetPlaybackDevice(deviceId) {
40
38
  return 'AudioDeviceManager_setPlaybackDevice_4ad5f6e';
41
- };
42
- IAudioDeviceManagerImpl.prototype.getPlaybackDevice = function () {
43
- var apiType = this.getApiTypeFromGetPlaybackDevice();
44
- var jsonParams = {};
45
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
46
- var deviceId = jsonResults.deviceId;
39
+ }
40
+ getPlaybackDevice() {
41
+ const apiType = this.getApiTypeFromGetPlaybackDevice();
42
+ const jsonParams = {};
43
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
44
+ const deviceId = jsonResults.deviceId;
47
45
  return deviceId;
48
- };
49
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetPlaybackDevice = function () {
46
+ }
47
+ getApiTypeFromGetPlaybackDevice() {
50
48
  return 'AudioDeviceManager_getPlaybackDevice_73b9872';
51
- };
52
- IAudioDeviceManagerImpl.prototype.getPlaybackDeviceInfo = function () {
53
- var apiType = this.getApiTypeFromGetPlaybackDeviceInfo();
54
- var jsonParams = {};
55
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
49
+ }
50
+ getPlaybackDeviceInfo() {
51
+ const apiType = this.getApiTypeFromGetPlaybackDeviceInfo();
52
+ const jsonParams = {};
53
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
56
54
  return jsonResults.result;
57
- };
58
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetPlaybackDeviceInfo = function () {
55
+ }
56
+ getApiTypeFromGetPlaybackDeviceInfo() {
59
57
  return 'AudioDeviceManager_getPlaybackDeviceInfo_ed3a96d';
60
- };
61
- IAudioDeviceManagerImpl.prototype.setPlaybackDeviceVolume = function (volume) {
62
- var apiType = this.getApiTypeFromSetPlaybackDeviceVolume(volume);
63
- var jsonParams = {
58
+ }
59
+ setPlaybackDeviceVolume(volume) {
60
+ const apiType = this.getApiTypeFromSetPlaybackDeviceVolume(volume);
61
+ const jsonParams = {
64
62
  volume: volume,
65
- toJSON: function () {
63
+ toJSON: () => {
66
64
  return {
67
65
  volume: volume,
68
66
  };
69
67
  },
70
68
  };
71
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
69
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
72
70
  return jsonResults.result;
73
- };
74
- IAudioDeviceManagerImpl.prototype.getApiTypeFromSetPlaybackDeviceVolume = function (volume) {
71
+ }
72
+ getApiTypeFromSetPlaybackDeviceVolume(volume) {
75
73
  return 'AudioDeviceManager_setPlaybackDeviceVolume_46f8ab7';
76
- };
77
- IAudioDeviceManagerImpl.prototype.getPlaybackDeviceVolume = function () {
78
- var apiType = this.getApiTypeFromGetPlaybackDeviceVolume();
79
- var jsonParams = {};
80
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
81
- var volume = jsonResults.volume;
74
+ }
75
+ getPlaybackDeviceVolume() {
76
+ const apiType = this.getApiTypeFromGetPlaybackDeviceVolume();
77
+ const jsonParams = {};
78
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
79
+ const volume = jsonResults.volume;
82
80
  return volume;
83
- };
84
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetPlaybackDeviceVolume = function () {
81
+ }
82
+ getApiTypeFromGetPlaybackDeviceVolume() {
85
83
  return 'AudioDeviceManager_getPlaybackDeviceVolume_915cb25';
86
- };
87
- IAudioDeviceManagerImpl.prototype.setRecordingDevice = function (deviceId) {
88
- var apiType = this.getApiTypeFromSetRecordingDevice(deviceId);
89
- var jsonParams = {
84
+ }
85
+ setRecordingDevice(deviceId) {
86
+ const apiType = this.getApiTypeFromSetRecordingDevice(deviceId);
87
+ const jsonParams = {
90
88
  deviceId: deviceId,
91
- toJSON: function () {
89
+ toJSON: () => {
92
90
  return {
93
91
  deviceId: deviceId,
94
92
  };
95
93
  },
96
94
  };
97
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
95
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
98
96
  return jsonResults.result;
99
- };
100
- IAudioDeviceManagerImpl.prototype.getApiTypeFromSetRecordingDevice = function (deviceId) {
97
+ }
98
+ getApiTypeFromSetRecordingDevice(deviceId) {
101
99
  return 'AudioDeviceManager_setRecordingDevice_4ad5f6e';
102
- };
103
- IAudioDeviceManagerImpl.prototype.getRecordingDevice = function () {
104
- var apiType = this.getApiTypeFromGetRecordingDevice();
105
- var jsonParams = {};
106
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
107
- var deviceId = jsonResults.deviceId;
100
+ }
101
+ getRecordingDevice() {
102
+ const apiType = this.getApiTypeFromGetRecordingDevice();
103
+ const jsonParams = {};
104
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
105
+ const deviceId = jsonResults.deviceId;
108
106
  return deviceId;
109
- };
110
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetRecordingDevice = function () {
107
+ }
108
+ getApiTypeFromGetRecordingDevice() {
111
109
  return 'AudioDeviceManager_getRecordingDevice_73b9872';
112
- };
113
- IAudioDeviceManagerImpl.prototype.getRecordingDeviceInfo = function () {
114
- var apiType = this.getApiTypeFromGetRecordingDeviceInfo();
115
- var jsonParams = {};
116
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
110
+ }
111
+ getRecordingDeviceInfo() {
112
+ const apiType = this.getApiTypeFromGetRecordingDeviceInfo();
113
+ const jsonParams = {};
114
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
117
115
  return jsonResults.result;
118
- };
119
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetRecordingDeviceInfo = function () {
116
+ }
117
+ getApiTypeFromGetRecordingDeviceInfo() {
120
118
  return 'AudioDeviceManager_getRecordingDeviceInfo_ed3a96d';
121
- };
122
- IAudioDeviceManagerImpl.prototype.setRecordingDeviceVolume = function (volume) {
123
- var apiType = this.getApiTypeFromSetRecordingDeviceVolume(volume);
124
- var jsonParams = {
119
+ }
120
+ setRecordingDeviceVolume(volume) {
121
+ const apiType = this.getApiTypeFromSetRecordingDeviceVolume(volume);
122
+ const jsonParams = {
125
123
  volume: volume,
126
- toJSON: function () {
124
+ toJSON: () => {
127
125
  return {
128
126
  volume: volume,
129
127
  };
130
128
  },
131
129
  };
132
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
130
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
133
131
  return jsonResults.result;
134
- };
135
- IAudioDeviceManagerImpl.prototype.getApiTypeFromSetRecordingDeviceVolume = function (volume) {
132
+ }
133
+ getApiTypeFromSetRecordingDeviceVolume(volume) {
136
134
  return 'AudioDeviceManager_setRecordingDeviceVolume_46f8ab7';
137
- };
138
- IAudioDeviceManagerImpl.prototype.getRecordingDeviceVolume = function () {
139
- var apiType = this.getApiTypeFromGetRecordingDeviceVolume();
140
- var jsonParams = {};
141
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
142
- var volume = jsonResults.volume;
135
+ }
136
+ getRecordingDeviceVolume() {
137
+ const apiType = this.getApiTypeFromGetRecordingDeviceVolume();
138
+ const jsonParams = {};
139
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
140
+ const volume = jsonResults.volume;
143
141
  return volume;
144
- };
145
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetRecordingDeviceVolume = function () {
142
+ }
143
+ getApiTypeFromGetRecordingDeviceVolume() {
146
144
  return 'AudioDeviceManager_getRecordingDeviceVolume_915cb25';
147
- };
148
- IAudioDeviceManagerImpl.prototype.setLoopbackDevice = function (deviceId) {
149
- var apiType = this.getApiTypeFromSetLoopbackDevice(deviceId);
150
- var jsonParams = {
145
+ }
146
+ setLoopbackDevice(deviceId) {
147
+ const apiType = this.getApiTypeFromSetLoopbackDevice(deviceId);
148
+ const jsonParams = {
151
149
  deviceId: deviceId,
152
- toJSON: function () {
150
+ toJSON: () => {
153
151
  return {
154
152
  deviceId: deviceId,
155
153
  };
156
154
  },
157
155
  };
158
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
156
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
159
157
  return jsonResults.result;
160
- };
161
- IAudioDeviceManagerImpl.prototype.getApiTypeFromSetLoopbackDevice = function (deviceId) {
158
+ }
159
+ getApiTypeFromSetLoopbackDevice(deviceId) {
162
160
  return 'AudioDeviceManager_setLoopbackDevice_4ad5f6e';
163
- };
164
- IAudioDeviceManagerImpl.prototype.getLoopbackDevice = function () {
165
- var apiType = this.getApiTypeFromGetLoopbackDevice();
166
- var jsonParams = {};
167
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
168
- var deviceId = jsonResults.deviceId;
161
+ }
162
+ getLoopbackDevice() {
163
+ const apiType = this.getApiTypeFromGetLoopbackDevice();
164
+ const jsonParams = {};
165
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
166
+ const deviceId = jsonResults.deviceId;
169
167
  return deviceId;
170
- };
171
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetLoopbackDevice = function () {
168
+ }
169
+ getApiTypeFromGetLoopbackDevice() {
172
170
  return 'AudioDeviceManager_getLoopbackDevice_73b9872';
173
- };
174
- IAudioDeviceManagerImpl.prototype.setPlaybackDeviceMute = function (mute) {
175
- var apiType = this.getApiTypeFromSetPlaybackDeviceMute(mute);
176
- var jsonParams = {
171
+ }
172
+ setPlaybackDeviceMute(mute) {
173
+ const apiType = this.getApiTypeFromSetPlaybackDeviceMute(mute);
174
+ const jsonParams = {
177
175
  mute: mute,
178
- toJSON: function () {
176
+ toJSON: () => {
179
177
  return {
180
178
  mute: mute,
181
179
  };
182
180
  },
183
181
  };
184
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
182
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
185
183
  return jsonResults.result;
186
- };
187
- IAudioDeviceManagerImpl.prototype.getApiTypeFromSetPlaybackDeviceMute = function (mute) {
184
+ }
185
+ getApiTypeFromSetPlaybackDeviceMute(mute) {
188
186
  return 'AudioDeviceManager_setPlaybackDeviceMute_5039d15';
189
- };
190
- IAudioDeviceManagerImpl.prototype.getPlaybackDeviceMute = function () {
191
- var apiType = this.getApiTypeFromGetPlaybackDeviceMute();
192
- var jsonParams = {};
193
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
194
- var mute = jsonResults.mute;
187
+ }
188
+ getPlaybackDeviceMute() {
189
+ const apiType = this.getApiTypeFromGetPlaybackDeviceMute();
190
+ const jsonParams = {};
191
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
192
+ const mute = jsonResults.mute;
195
193
  return mute;
196
- };
197
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetPlaybackDeviceMute = function () {
194
+ }
195
+ getApiTypeFromGetPlaybackDeviceMute() {
198
196
  return 'AudioDeviceManager_getPlaybackDeviceMute_d942327';
199
- };
200
- IAudioDeviceManagerImpl.prototype.setRecordingDeviceMute = function (mute) {
201
- var apiType = this.getApiTypeFromSetRecordingDeviceMute(mute);
202
- var jsonParams = {
197
+ }
198
+ setRecordingDeviceMute(mute) {
199
+ const apiType = this.getApiTypeFromSetRecordingDeviceMute(mute);
200
+ const jsonParams = {
203
201
  mute: mute,
204
- toJSON: function () {
202
+ toJSON: () => {
205
203
  return {
206
204
  mute: mute,
207
205
  };
208
206
  },
209
207
  };
210
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
208
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
211
209
  return jsonResults.result;
212
- };
213
- IAudioDeviceManagerImpl.prototype.getApiTypeFromSetRecordingDeviceMute = function (mute) {
210
+ }
211
+ getApiTypeFromSetRecordingDeviceMute(mute) {
214
212
  return 'AudioDeviceManager_setRecordingDeviceMute_5039d15';
215
- };
216
- IAudioDeviceManagerImpl.prototype.getRecordingDeviceMute = function () {
217
- var apiType = this.getApiTypeFromGetRecordingDeviceMute();
218
- var jsonParams = {};
219
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
220
- var mute = jsonResults.mute;
213
+ }
214
+ getRecordingDeviceMute() {
215
+ const apiType = this.getApiTypeFromGetRecordingDeviceMute();
216
+ const jsonParams = {};
217
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
218
+ const mute = jsonResults.mute;
221
219
  return mute;
222
- };
223
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetRecordingDeviceMute = function () {
220
+ }
221
+ getApiTypeFromGetRecordingDeviceMute() {
224
222
  return 'AudioDeviceManager_getRecordingDeviceMute_d942327';
225
- };
226
- IAudioDeviceManagerImpl.prototype.startPlaybackDeviceTest = function (testAudioFilePath) {
227
- var apiType = this.getApiTypeFromStartPlaybackDeviceTest(testAudioFilePath);
228
- var jsonParams = {
223
+ }
224
+ startPlaybackDeviceTest(testAudioFilePath) {
225
+ const apiType = this.getApiTypeFromStartPlaybackDeviceTest(testAudioFilePath);
226
+ const jsonParams = {
229
227
  testAudioFilePath: testAudioFilePath,
230
- toJSON: function () {
228
+ toJSON: () => {
231
229
  return {
232
230
  testAudioFilePath: testAudioFilePath,
233
231
  };
234
232
  },
235
233
  };
236
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
234
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
237
235
  return jsonResults.result;
238
- };
239
- IAudioDeviceManagerImpl.prototype.getApiTypeFromStartPlaybackDeviceTest = function (testAudioFilePath) {
236
+ }
237
+ getApiTypeFromStartPlaybackDeviceTest(testAudioFilePath) {
240
238
  return 'AudioDeviceManager_startPlaybackDeviceTest_3a2037f';
241
- };
242
- IAudioDeviceManagerImpl.prototype.stopPlaybackDeviceTest = function () {
243
- var apiType = this.getApiTypeFromStopPlaybackDeviceTest();
244
- var jsonParams = {};
245
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
239
+ }
240
+ stopPlaybackDeviceTest() {
241
+ const apiType = this.getApiTypeFromStopPlaybackDeviceTest();
242
+ const jsonParams = {};
243
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
246
244
  return jsonResults.result;
247
- };
248
- IAudioDeviceManagerImpl.prototype.getApiTypeFromStopPlaybackDeviceTest = function () {
245
+ }
246
+ getApiTypeFromStopPlaybackDeviceTest() {
249
247
  return 'AudioDeviceManager_stopPlaybackDeviceTest';
250
- };
251
- IAudioDeviceManagerImpl.prototype.startRecordingDeviceTest = function (indicationInterval) {
252
- var apiType = this.getApiTypeFromStartRecordingDeviceTest(indicationInterval);
253
- var jsonParams = {
248
+ }
249
+ startRecordingDeviceTest(indicationInterval) {
250
+ const apiType = this.getApiTypeFromStartRecordingDeviceTest(indicationInterval);
251
+ const jsonParams = {
254
252
  indicationInterval: indicationInterval,
255
- toJSON: function () {
253
+ toJSON: () => {
256
254
  return {
257
255
  indicationInterval: indicationInterval,
258
256
  };
259
257
  },
260
258
  };
261
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
259
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
262
260
  return jsonResults.result;
263
- };
264
- IAudioDeviceManagerImpl.prototype.getApiTypeFromStartRecordingDeviceTest = function (indicationInterval) {
261
+ }
262
+ getApiTypeFromStartRecordingDeviceTest(indicationInterval) {
265
263
  return 'AudioDeviceManager_startRecordingDeviceTest_46f8ab7';
266
- };
267
- IAudioDeviceManagerImpl.prototype.stopRecordingDeviceTest = function () {
268
- var apiType = this.getApiTypeFromStopRecordingDeviceTest();
269
- var jsonParams = {};
270
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
264
+ }
265
+ stopRecordingDeviceTest() {
266
+ const apiType = this.getApiTypeFromStopRecordingDeviceTest();
267
+ const jsonParams = {};
268
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
271
269
  return jsonResults.result;
272
- };
273
- IAudioDeviceManagerImpl.prototype.getApiTypeFromStopRecordingDeviceTest = function () {
270
+ }
271
+ getApiTypeFromStopRecordingDeviceTest() {
274
272
  return 'AudioDeviceManager_stopRecordingDeviceTest';
275
- };
276
- IAudioDeviceManagerImpl.prototype.startAudioDeviceLoopbackTest = function (indicationInterval) {
277
- var apiType = this.getApiTypeFromStartAudioDeviceLoopbackTest(indicationInterval);
278
- var jsonParams = {
273
+ }
274
+ startAudioDeviceLoopbackTest(indicationInterval) {
275
+ const apiType = this.getApiTypeFromStartAudioDeviceLoopbackTest(indicationInterval);
276
+ const jsonParams = {
279
277
  indicationInterval: indicationInterval,
280
- toJSON: function () {
278
+ toJSON: () => {
281
279
  return {
282
280
  indicationInterval: indicationInterval,
283
281
  };
284
282
  },
285
283
  };
286
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
284
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
287
285
  return jsonResults.result;
288
- };
289
- IAudioDeviceManagerImpl.prototype.getApiTypeFromStartAudioDeviceLoopbackTest = function (indicationInterval) {
286
+ }
287
+ getApiTypeFromStartAudioDeviceLoopbackTest(indicationInterval) {
290
288
  return 'AudioDeviceManager_startAudioDeviceLoopbackTest_46f8ab7';
291
- };
292
- IAudioDeviceManagerImpl.prototype.stopAudioDeviceLoopbackTest = function () {
293
- var apiType = this.getApiTypeFromStopAudioDeviceLoopbackTest();
294
- var jsonParams = {};
295
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
289
+ }
290
+ stopAudioDeviceLoopbackTest() {
291
+ const apiType = this.getApiTypeFromStopAudioDeviceLoopbackTest();
292
+ const jsonParams = {};
293
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
296
294
  return jsonResults.result;
297
- };
298
- IAudioDeviceManagerImpl.prototype.getApiTypeFromStopAudioDeviceLoopbackTest = function () {
295
+ }
296
+ getApiTypeFromStopAudioDeviceLoopbackTest() {
299
297
  return 'AudioDeviceManager_stopAudioDeviceLoopbackTest';
300
- };
301
- IAudioDeviceManagerImpl.prototype.followSystemPlaybackDevice = function (enable) {
302
- var apiType = this.getApiTypeFromFollowSystemPlaybackDevice(enable);
303
- var jsonParams = {
298
+ }
299
+ followSystemPlaybackDevice(enable) {
300
+ const apiType = this.getApiTypeFromFollowSystemPlaybackDevice(enable);
301
+ const jsonParams = {
304
302
  enable: enable,
305
- toJSON: function () {
303
+ toJSON: () => {
306
304
  return {
307
305
  enable: enable,
308
306
  };
309
307
  },
310
308
  };
311
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
309
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
312
310
  return jsonResults.result;
313
- };
314
- IAudioDeviceManagerImpl.prototype.getApiTypeFromFollowSystemPlaybackDevice = function (enable) {
311
+ }
312
+ getApiTypeFromFollowSystemPlaybackDevice(enable) {
315
313
  return 'AudioDeviceManager_followSystemPlaybackDevice_5039d15';
316
- };
317
- IAudioDeviceManagerImpl.prototype.followSystemRecordingDevice = function (enable) {
318
- var apiType = this.getApiTypeFromFollowSystemRecordingDevice(enable);
319
- var jsonParams = {
314
+ }
315
+ followSystemRecordingDevice(enable) {
316
+ const apiType = this.getApiTypeFromFollowSystemRecordingDevice(enable);
317
+ const jsonParams = {
320
318
  enable: enable,
321
- toJSON: function () {
319
+ toJSON: () => {
322
320
  return {
323
321
  enable: enable,
324
322
  };
325
323
  },
326
324
  };
327
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
325
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
328
326
  return jsonResults.result;
329
- };
330
- IAudioDeviceManagerImpl.prototype.getApiTypeFromFollowSystemRecordingDevice = function (enable) {
327
+ }
328
+ getApiTypeFromFollowSystemRecordingDevice(enable) {
331
329
  return 'AudioDeviceManager_followSystemRecordingDevice_5039d15';
332
- };
333
- IAudioDeviceManagerImpl.prototype.followSystemLoopbackDevice = function (enable) {
334
- var apiType = this.getApiTypeFromFollowSystemLoopbackDevice(enable);
335
- var jsonParams = {
330
+ }
331
+ followSystemLoopbackDevice(enable) {
332
+ const apiType = this.getApiTypeFromFollowSystemLoopbackDevice(enable);
333
+ const jsonParams = {
336
334
  enable: enable,
337
- toJSON: function () {
335
+ toJSON: () => {
338
336
  return {
339
337
  enable: enable,
340
338
  };
341
339
  },
342
340
  };
343
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
341
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
344
342
  return jsonResults.result;
345
- };
346
- IAudioDeviceManagerImpl.prototype.getApiTypeFromFollowSystemLoopbackDevice = function (enable) {
343
+ }
344
+ getApiTypeFromFollowSystemLoopbackDevice(enable) {
347
345
  return 'AudioDeviceManager_followSystemLoopbackDevice_5039d15';
348
- };
349
- IAudioDeviceManagerImpl.prototype.release = function () {
350
- var apiType = this.getApiTypeFromRelease();
351
- var jsonParams = {};
346
+ }
347
+ release() {
348
+ const apiType = this.getApiTypeFromRelease();
349
+ const jsonParams = {};
352
350
  IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
353
- };
354
- IAudioDeviceManagerImpl.prototype.getApiTypeFromRelease = function () {
351
+ }
352
+ getApiTypeFromRelease() {
355
353
  return 'AudioDeviceManager_release';
356
- };
357
- IAudioDeviceManagerImpl.prototype.getPlaybackDefaultDevice = function () {
358
- var apiType = this.getApiTypeFromGetPlaybackDefaultDevice();
359
- var jsonParams = {};
360
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
354
+ }
355
+ getPlaybackDefaultDevice() {
356
+ const apiType = this.getApiTypeFromGetPlaybackDefaultDevice();
357
+ const jsonParams = {};
358
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
361
359
  return jsonResults.result;
362
- };
363
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetPlaybackDefaultDevice = function () {
360
+ }
361
+ getApiTypeFromGetPlaybackDefaultDevice() {
364
362
  return 'AudioDeviceManager_getPlaybackDefaultDevice';
365
- };
366
- IAudioDeviceManagerImpl.prototype.getRecordingDefaultDevice = function () {
367
- var apiType = this.getApiTypeFromGetRecordingDefaultDevice();
368
- var jsonParams = {};
369
- var jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
363
+ }
364
+ getRecordingDefaultDevice() {
365
+ const apiType = this.getApiTypeFromGetRecordingDefaultDevice();
366
+ const jsonParams = {};
367
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
370
368
  return jsonResults.result;
371
- };
372
- IAudioDeviceManagerImpl.prototype.getApiTypeFromGetRecordingDefaultDevice = function () {
369
+ }
370
+ getApiTypeFromGetRecordingDefaultDevice() {
373
371
  return 'AudioDeviceManager_getRecordingDefaultDevice';
374
- };
375
- return IAudioDeviceManagerImpl;
376
- }());
372
+ }
373
+ }
377
374
  exports.IAudioDeviceManagerImpl = IAudioDeviceManagerImpl;
378
- var IrisApiEngine_1 = require("../internal/IrisApiEngine");
375
+ const IrisApiEngine_1 = require("../internal/IrisApiEngine");