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