agora-electron-sdk 4.3.2 → 4.4.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/gulpfile.js +3 -1
- package/js/AgoraSdk.js +5 -5
- package/js/Private/AgoraBase.js +374 -333
- package/js/Private/AgoraMediaBase.js +293 -78
- package/js/Private/AgoraMediaPlayerTypes.js +12 -30
- package/js/Private/IAgoraH265Transcoder.js +2 -5
- package/js/Private/IAgoraLog.js +6 -5
- package/js/Private/IAgoraMediaEngine.js +2 -5
- package/js/Private/IAgoraMediaPlayer.js +4 -10
- package/js/Private/IAgoraMediaRecorder.js +2 -5
- package/js/Private/IAgoraMediaStreamingSource.js +2 -5
- package/js/Private/IAgoraMusicContentCenter.js +21 -68
- package/js/Private/IAgoraRhythmPlayer.js +14 -17
- package/js/Private/IAgoraRtcEngine.js +76 -130
- package/js/Private/IAgoraRtcEngineEx.js +5 -28
- package/js/Private/IAgoraSpatialAudio.js +6 -15
- package/js/Private/IAudioDeviceManager.js +2 -5
- package/js/Private/impl/AgoraMediaBaseImpl.js +11 -14
- package/js/Private/impl/IAgoraH265TranscoderImpl.js +43 -46
- package/js/Private/impl/IAgoraMediaEngineImpl.js +155 -172
- package/js/Private/impl/IAgoraMediaPlayerImpl.js +534 -546
- package/js/Private/impl/IAgoraMediaRecorderImpl.js +26 -29
- package/js/Private/impl/IAgoraMusicContentCenterImpl.js +218 -251
- package/js/Private/impl/IAgoraRtcEngineExImpl.js +434 -436
- package/js/Private/impl/IAgoraRtcEngineImpl.js +2429 -2439
- package/js/Private/impl/IAgoraSpatialAudioImpl.js +167 -170
- package/js/Private/impl/IAudioDeviceManagerImpl.js +232 -235
- package/js/Private/internal/AgoraH265TranscoderInternal.js +33 -57
- package/js/Private/internal/AgoraMediaBaseInternal.js +9 -28
- package/js/Private/internal/AudioDeviceManagerInternal.js +24 -44
- package/js/Private/internal/IrisApiEngine.js +94 -145
- package/js/Private/internal/LocalSpatialAudioEngineInternal.js +3 -23
- package/js/Private/internal/MediaEngineInternal.js +69 -94
- package/js/Private/internal/MediaPlayerInternal.js +105 -125
- package/js/Private/internal/MediaRecorderInternal.js +37 -64
- package/js/Private/internal/MusicContentCenterInternal.js +92 -129
- package/js/Private/internal/RtcEngineExInternal.js +219 -243
- package/js/Private/ti/AgoraBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaBase-ti.js +2 -2
- package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
- package/js/Private/ti/IAgoraH265Transcoder-ti.js +2 -2
- package/js/Private/ti/IAgoraLog-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
- package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
- package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
- package/js/Private/ti/IAgoraMusicContentCenter-ti.js +2 -2
- package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
- package/js/Private/ti/IAgoraRtcEngine-ti.js +7 -7
- package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
- package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
- package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
- package/js/Renderer/AgoraView.js +120 -146
- package/js/Renderer/IRenderer.js +43 -53
- package/js/Renderer/IRendererManager.js +119 -132
- package/js/Renderer/RendererCache.js +63 -96
- package/js/Renderer/RendererManager.js +35 -69
- package/js/Renderer/WebGLRenderer/index.js +77 -106
- package/js/Renderer/YUVCanvasRenderer/index.js +18 -40
- package/js/Utils.js +45 -64
- package/package.json +13 -7
- package/scripts/checkElectron.js +41 -0
- package/scripts/downloadPrebuild.js +54 -16
- package/scripts/synclib.js +6 -6
- package/ts/AgoraSdk.ts +1 -1
- package/ts/Private/AgoraBase.ts +282 -13
- package/ts/Private/AgoraMediaBase.ts +390 -32
- package/ts/Private/IAgoraLog.ts +4 -0
- package/ts/Private/IAgoraMediaEngine.ts +10 -21
- package/ts/Private/IAgoraMediaPlayer.ts +2 -0
- package/ts/Private/IAgoraRhythmPlayer.ts +12 -12
- package/ts/Private/IAgoraRtcEngine.ts +243 -237
- package/ts/Private/IAgoraRtcEngineEx.ts +34 -26
- package/ts/Private/IAudioDeviceManager.ts +4 -4
- package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +30 -0
- package/ts/Private/impl/IAgoraRtcEngineImpl.ts +181 -103
- package/ts/Private/internal/IrisApiEngine.ts +3 -7
- package/ts/Private/internal/MediaEngineInternal.ts +0 -1
- package/ts/Private/internal/RtcEngineExInternal.ts +14 -5
- package/ts/Private/ti/IAgoraRtcEngine-ti.ts +5 -5
- package/ts/Renderer/AgoraView.ts +33 -4
- package/ts/Renderer/IRenderer.ts +1 -2
- package/ts/Renderer/IRendererManager.ts +41 -14
- package/ts/Renderer/RendererCache.ts +2 -2
- package/ts/Types.ts +1 -1
- package/ts/Utils.ts +15 -0
- package/types/AgoraSdk.d.ts +1 -1
- package/types/Private/AgoraBase.d.ts +277 -17
- package/types/Private/AgoraBase.d.ts.map +1 -1
- package/types/Private/AgoraMediaBase.d.ts +382 -32
- package/types/Private/AgoraMediaBase.d.ts.map +1 -1
- package/types/Private/IAgoraLog.d.ts +5 -1
- package/types/Private/IAgoraLog.d.ts.map +1 -1
- package/types/Private/IAgoraMediaEngine.d.ts +10 -21
- package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
- package/types/Private/IAgoraMediaPlayer.d.ts +2 -0
- package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
- package/types/Private/IAgoraRhythmPlayer.d.ts +12 -12
- package/types/Private/IAgoraRtcEngine.d.ts +219 -232
- package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
- package/types/Private/IAgoraRtcEngineEx.d.ts +30 -27
- package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
- package/types/Private/IAudioDeviceManager.d.ts +4 -4
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +3 -1
- package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -1
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +13 -9
- package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
- package/types/Private/internal/IrisApiEngine.d.ts.map +1 -1
- package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -1
- package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
- package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
- package/types/Renderer/AgoraView.d.ts +8 -2
- package/types/Renderer/AgoraView.d.ts.map +1 -1
- package/types/Renderer/IRenderer.d.ts.map +1 -1
- package/types/Renderer/IRendererManager.d.ts.map +1 -1
- package/types/Renderer/RendererCache.d.ts +1 -1
- package/types/Renderer/RendererCache.d.ts.map +1 -1
- package/types/Types.d.ts +1 -1
- package/types/Types.d.ts.map +1 -1
- package/types/Utils.d.ts +4 -0
- package/types/Utils.d.ts.map +1 -1
|
@@ -2,51 +2,49 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ILocalSpatialAudioEngineImpl = void 0;
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var apiType = this.getApiTypeFromRelease();
|
|
10
|
-
var jsonParams = {};
|
|
5
|
+
class ILocalSpatialAudioEngineImpl {
|
|
6
|
+
release() {
|
|
7
|
+
const apiType = this.getApiTypeFromRelease();
|
|
8
|
+
const jsonParams = {};
|
|
11
9
|
IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
12
|
-
}
|
|
13
|
-
|
|
10
|
+
}
|
|
11
|
+
getApiTypeFromRelease() {
|
|
14
12
|
return 'LocalSpatialAudioEngine_release';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
}
|
|
14
|
+
initialize() {
|
|
15
|
+
const apiType = this.getApiTypeFromInitialize();
|
|
16
|
+
const jsonParams = {};
|
|
17
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
20
18
|
return jsonResults.result;
|
|
21
|
-
}
|
|
22
|
-
|
|
19
|
+
}
|
|
20
|
+
getApiTypeFromInitialize() {
|
|
23
21
|
return 'LocalSpatialAudioEngine_initialize_cf94fbf';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
}
|
|
23
|
+
updateRemotePosition(uid, posInfo) {
|
|
24
|
+
const apiType = this.getApiTypeFromUpdateRemotePosition(uid, posInfo);
|
|
25
|
+
const jsonParams = {
|
|
28
26
|
uid: uid,
|
|
29
27
|
posInfo: posInfo,
|
|
30
|
-
toJSON:
|
|
28
|
+
toJSON: () => {
|
|
31
29
|
return {
|
|
32
30
|
uid: uid,
|
|
33
31
|
posInfo: posInfo,
|
|
34
32
|
};
|
|
35
33
|
},
|
|
36
34
|
};
|
|
37
|
-
|
|
35
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
38
36
|
return jsonResults.result;
|
|
39
|
-
}
|
|
40
|
-
|
|
37
|
+
}
|
|
38
|
+
getApiTypeFromUpdateRemotePosition(uid, posInfo) {
|
|
41
39
|
return 'LocalSpatialAudioEngine_updateRemotePosition_adc0909';
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
}
|
|
41
|
+
updateRemotePositionEx(uid, posInfo, connection) {
|
|
42
|
+
const apiType = this.getApiTypeFromUpdateRemotePositionEx(uid, posInfo, connection);
|
|
43
|
+
const jsonParams = {
|
|
46
44
|
uid: uid,
|
|
47
45
|
posInfo: posInfo,
|
|
48
46
|
connection: connection,
|
|
49
|
-
toJSON:
|
|
47
|
+
toJSON: () => {
|
|
50
48
|
return {
|
|
51
49
|
uid: uid,
|
|
52
50
|
posInfo: posInfo,
|
|
@@ -54,71 +52,71 @@ var ILocalSpatialAudioEngineImpl = /** @class */ (function () {
|
|
|
54
52
|
};
|
|
55
53
|
},
|
|
56
54
|
};
|
|
57
|
-
|
|
55
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
58
56
|
return jsonResults.result;
|
|
59
|
-
}
|
|
60
|
-
|
|
57
|
+
}
|
|
58
|
+
getApiTypeFromUpdateRemotePositionEx(uid, posInfo, connection) {
|
|
61
59
|
return 'LocalSpatialAudioEngine_updateRemotePositionEx_f0252d9';
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
}
|
|
61
|
+
removeRemotePosition(uid) {
|
|
62
|
+
const apiType = this.getApiTypeFromRemoveRemotePosition(uid);
|
|
63
|
+
const jsonParams = {
|
|
66
64
|
uid: uid,
|
|
67
|
-
toJSON:
|
|
65
|
+
toJSON: () => {
|
|
68
66
|
return {
|
|
69
67
|
uid: uid,
|
|
70
68
|
};
|
|
71
69
|
},
|
|
72
70
|
};
|
|
73
|
-
|
|
71
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
74
72
|
return jsonResults.result;
|
|
75
|
-
}
|
|
76
|
-
|
|
73
|
+
}
|
|
74
|
+
getApiTypeFromRemoveRemotePosition(uid) {
|
|
77
75
|
return 'LocalSpatialAudioEngine_removeRemotePosition_c8d091a';
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
}
|
|
77
|
+
removeRemotePositionEx(uid, connection) {
|
|
78
|
+
const apiType = this.getApiTypeFromRemoveRemotePositionEx(uid, connection);
|
|
79
|
+
const jsonParams = {
|
|
82
80
|
uid: uid,
|
|
83
81
|
connection: connection,
|
|
84
|
-
toJSON:
|
|
82
|
+
toJSON: () => {
|
|
85
83
|
return {
|
|
86
84
|
uid: uid,
|
|
87
85
|
connection: connection,
|
|
88
86
|
};
|
|
89
87
|
},
|
|
90
88
|
};
|
|
91
|
-
|
|
89
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
92
90
|
return jsonResults.result;
|
|
93
|
-
}
|
|
94
|
-
|
|
91
|
+
}
|
|
92
|
+
getApiTypeFromRemoveRemotePositionEx(uid, connection) {
|
|
95
93
|
return 'LocalSpatialAudioEngine_removeRemotePositionEx_58a9850';
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
}
|
|
95
|
+
clearRemotePositionsEx(connection) {
|
|
96
|
+
const apiType = this.getApiTypeFromClearRemotePositionsEx(connection);
|
|
97
|
+
const jsonParams = {
|
|
100
98
|
connection: connection,
|
|
101
|
-
toJSON:
|
|
99
|
+
toJSON: () => {
|
|
102
100
|
return {
|
|
103
101
|
connection: connection,
|
|
104
102
|
};
|
|
105
103
|
},
|
|
106
104
|
};
|
|
107
|
-
|
|
105
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
108
106
|
return jsonResults.result;
|
|
109
|
-
}
|
|
110
|
-
|
|
107
|
+
}
|
|
108
|
+
getApiTypeFromClearRemotePositionsEx(connection) {
|
|
111
109
|
return 'LocalSpatialAudioEngine_clearRemotePositionsEx_c81e1a4';
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
}
|
|
111
|
+
updateSelfPositionEx(position, axisForward, axisRight, axisUp, connection) {
|
|
112
|
+
const apiType = this.getApiTypeFromUpdateSelfPositionEx(position, axisForward, axisRight, axisUp, connection);
|
|
113
|
+
const jsonParams = {
|
|
116
114
|
position: position,
|
|
117
115
|
axisForward: axisForward,
|
|
118
116
|
axisRight: axisRight,
|
|
119
117
|
axisUp: axisUp,
|
|
120
118
|
connection: connection,
|
|
121
|
-
toJSON:
|
|
119
|
+
toJSON: () => {
|
|
122
120
|
return {
|
|
123
121
|
position: position,
|
|
124
122
|
axisForward: axisForward,
|
|
@@ -128,68 +126,68 @@ var ILocalSpatialAudioEngineImpl = /** @class */ (function () {
|
|
|
128
126
|
};
|
|
129
127
|
},
|
|
130
128
|
};
|
|
131
|
-
|
|
129
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
132
130
|
return jsonResults.result;
|
|
133
|
-
}
|
|
134
|
-
|
|
131
|
+
}
|
|
132
|
+
getApiTypeFromUpdateSelfPositionEx(position, axisForward, axisRight, axisUp, connection) {
|
|
135
133
|
return 'LocalSpatialAudioEngine_updateSelfPositionEx_502183a';
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
}
|
|
135
|
+
setMaxAudioRecvCount(maxCount) {
|
|
136
|
+
const apiType = this.getApiTypeFromSetMaxAudioRecvCount(maxCount);
|
|
137
|
+
const jsonParams = {
|
|
140
138
|
maxCount: maxCount,
|
|
141
|
-
toJSON:
|
|
139
|
+
toJSON: () => {
|
|
142
140
|
return {
|
|
143
141
|
maxCount: maxCount,
|
|
144
142
|
};
|
|
145
143
|
},
|
|
146
144
|
};
|
|
147
|
-
|
|
145
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
148
146
|
return jsonResults.result;
|
|
149
|
-
}
|
|
150
|
-
|
|
147
|
+
}
|
|
148
|
+
getApiTypeFromSetMaxAudioRecvCount(maxCount) {
|
|
151
149
|
return 'LocalSpatialAudioEngine_setMaxAudioRecvCount_46f8ab7';
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
}
|
|
151
|
+
setAudioRecvRange(range) {
|
|
152
|
+
const apiType = this.getApiTypeFromSetAudioRecvRange(range);
|
|
153
|
+
const jsonParams = {
|
|
156
154
|
range: range,
|
|
157
|
-
toJSON:
|
|
155
|
+
toJSON: () => {
|
|
158
156
|
return {
|
|
159
157
|
range: range,
|
|
160
158
|
};
|
|
161
159
|
},
|
|
162
160
|
};
|
|
163
|
-
|
|
161
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
164
162
|
return jsonResults.result;
|
|
165
|
-
}
|
|
166
|
-
|
|
163
|
+
}
|
|
164
|
+
getApiTypeFromSetAudioRecvRange(range) {
|
|
167
165
|
return 'LocalSpatialAudioEngine_setAudioRecvRange_685e803';
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
166
|
+
}
|
|
167
|
+
setDistanceUnit(unit) {
|
|
168
|
+
const apiType = this.getApiTypeFromSetDistanceUnit(unit);
|
|
169
|
+
const jsonParams = {
|
|
172
170
|
unit: unit,
|
|
173
|
-
toJSON:
|
|
171
|
+
toJSON: () => {
|
|
174
172
|
return {
|
|
175
173
|
unit: unit,
|
|
176
174
|
};
|
|
177
175
|
},
|
|
178
176
|
};
|
|
179
|
-
|
|
177
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
180
178
|
return jsonResults.result;
|
|
181
|
-
}
|
|
182
|
-
|
|
179
|
+
}
|
|
180
|
+
getApiTypeFromSetDistanceUnit(unit) {
|
|
183
181
|
return 'LocalSpatialAudioEngine_setDistanceUnit_685e803';
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
182
|
+
}
|
|
183
|
+
updateSelfPosition(position, axisForward, axisRight, axisUp) {
|
|
184
|
+
const apiType = this.getApiTypeFromUpdateSelfPosition(position, axisForward, axisRight, axisUp);
|
|
185
|
+
const jsonParams = {
|
|
188
186
|
position: position,
|
|
189
187
|
axisForward: axisForward,
|
|
190
188
|
axisRight: axisRight,
|
|
191
189
|
axisUp: axisUp,
|
|
192
|
-
toJSON:
|
|
190
|
+
toJSON: () => {
|
|
193
191
|
return {
|
|
194
192
|
position: position,
|
|
195
193
|
axisForward: axisForward,
|
|
@@ -198,103 +196,103 @@ var ILocalSpatialAudioEngineImpl = /** @class */ (function () {
|
|
|
198
196
|
};
|
|
199
197
|
},
|
|
200
198
|
};
|
|
201
|
-
|
|
199
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
202
200
|
return jsonResults.result;
|
|
203
|
-
}
|
|
204
|
-
|
|
201
|
+
}
|
|
202
|
+
getApiTypeFromUpdateSelfPosition(position, axisForward, axisRight, axisUp) {
|
|
205
203
|
return 'LocalSpatialAudioEngine_updateSelfPosition_9c9930f';
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
}
|
|
205
|
+
updatePlayerPositionInfo(playerId, positionInfo) {
|
|
206
|
+
const apiType = this.getApiTypeFromUpdatePlayerPositionInfo(playerId, positionInfo);
|
|
207
|
+
const jsonParams = {
|
|
210
208
|
playerId: playerId,
|
|
211
209
|
positionInfo: positionInfo,
|
|
212
|
-
toJSON:
|
|
210
|
+
toJSON: () => {
|
|
213
211
|
return {
|
|
214
212
|
playerId: playerId,
|
|
215
213
|
positionInfo: positionInfo,
|
|
216
214
|
};
|
|
217
215
|
},
|
|
218
216
|
};
|
|
219
|
-
|
|
217
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
220
218
|
return jsonResults.result;
|
|
221
|
-
}
|
|
222
|
-
|
|
219
|
+
}
|
|
220
|
+
getApiTypeFromUpdatePlayerPositionInfo(playerId, positionInfo) {
|
|
223
221
|
return 'LocalSpatialAudioEngine_updatePlayerPositionInfo_b37c59d';
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
}
|
|
223
|
+
setParameters(params) {
|
|
224
|
+
const apiType = this.getApiTypeFromSetParameters(params);
|
|
225
|
+
const jsonParams = {
|
|
228
226
|
params: params,
|
|
229
|
-
toJSON:
|
|
227
|
+
toJSON: () => {
|
|
230
228
|
return {
|
|
231
229
|
params: params,
|
|
232
230
|
};
|
|
233
231
|
},
|
|
234
232
|
};
|
|
235
|
-
|
|
233
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
236
234
|
return jsonResults.result;
|
|
237
|
-
}
|
|
238
|
-
|
|
235
|
+
}
|
|
236
|
+
getApiTypeFromSetParameters(params) {
|
|
239
237
|
return 'LocalSpatialAudioEngine_setParameters_3a2037f';
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
238
|
+
}
|
|
239
|
+
muteLocalAudioStream(mute) {
|
|
240
|
+
const apiType = this.getApiTypeFromMuteLocalAudioStream(mute);
|
|
241
|
+
const jsonParams = {
|
|
244
242
|
mute: mute,
|
|
245
|
-
toJSON:
|
|
243
|
+
toJSON: () => {
|
|
246
244
|
return {
|
|
247
245
|
mute: mute,
|
|
248
246
|
};
|
|
249
247
|
},
|
|
250
248
|
};
|
|
251
|
-
|
|
249
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
252
250
|
return jsonResults.result;
|
|
253
|
-
}
|
|
254
|
-
|
|
251
|
+
}
|
|
252
|
+
getApiTypeFromMuteLocalAudioStream(mute) {
|
|
255
253
|
return 'LocalSpatialAudioEngine_muteLocalAudioStream_5039d15';
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
}
|
|
255
|
+
muteAllRemoteAudioStreams(mute) {
|
|
256
|
+
const apiType = this.getApiTypeFromMuteAllRemoteAudioStreams(mute);
|
|
257
|
+
const jsonParams = {
|
|
260
258
|
mute: mute,
|
|
261
|
-
toJSON:
|
|
259
|
+
toJSON: () => {
|
|
262
260
|
return {
|
|
263
261
|
mute: mute,
|
|
264
262
|
};
|
|
265
263
|
},
|
|
266
264
|
};
|
|
267
|
-
|
|
265
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
268
266
|
return jsonResults.result;
|
|
269
|
-
}
|
|
270
|
-
|
|
267
|
+
}
|
|
268
|
+
getApiTypeFromMuteAllRemoteAudioStreams(mute) {
|
|
271
269
|
return 'LocalSpatialAudioEngine_muteAllRemoteAudioStreams_5039d15';
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
270
|
+
}
|
|
271
|
+
muteRemoteAudioStream(uid, mute) {
|
|
272
|
+
const apiType = this.getApiTypeFromMuteRemoteAudioStream(uid, mute);
|
|
273
|
+
const jsonParams = {
|
|
276
274
|
uid: uid,
|
|
277
275
|
mute: mute,
|
|
278
|
-
toJSON:
|
|
276
|
+
toJSON: () => {
|
|
279
277
|
return {
|
|
280
278
|
uid: uid,
|
|
281
279
|
mute: mute,
|
|
282
280
|
};
|
|
283
281
|
},
|
|
284
282
|
};
|
|
285
|
-
|
|
283
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
286
284
|
return jsonResults.result;
|
|
287
|
-
}
|
|
288
|
-
|
|
285
|
+
}
|
|
286
|
+
getApiTypeFromMuteRemoteAudioStream(uid, mute) {
|
|
289
287
|
return 'LocalSpatialAudioEngine_muteRemoteAudioStream_dbdc15a';
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
}
|
|
289
|
+
setRemoteAudioAttenuation(uid, attenuation, forceSet) {
|
|
290
|
+
const apiType = this.getApiTypeFromSetRemoteAudioAttenuation(uid, attenuation, forceSet);
|
|
291
|
+
const jsonParams = {
|
|
294
292
|
uid: uid,
|
|
295
293
|
attenuation: attenuation,
|
|
296
294
|
forceSet: forceSet,
|
|
297
|
-
toJSON:
|
|
295
|
+
toJSON: () => {
|
|
298
296
|
return {
|
|
299
297
|
uid: uid,
|
|
300
298
|
attenuation: attenuation,
|
|
@@ -302,37 +300,37 @@ var ILocalSpatialAudioEngineImpl = /** @class */ (function () {
|
|
|
302
300
|
};
|
|
303
301
|
},
|
|
304
302
|
};
|
|
305
|
-
|
|
303
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
306
304
|
return jsonResults.result;
|
|
307
|
-
}
|
|
308
|
-
|
|
305
|
+
}
|
|
306
|
+
getApiTypeFromSetRemoteAudioAttenuation(uid, attenuation, forceSet) {
|
|
309
307
|
return 'LocalSpatialAudioEngine_setRemoteAudioAttenuation_74c3e98';
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
308
|
+
}
|
|
309
|
+
setZones(zones, zoneCount) {
|
|
310
|
+
const apiType = this.getApiTypeFromSetZones(zones, zoneCount);
|
|
311
|
+
const jsonParams = {
|
|
314
312
|
zones: zones,
|
|
315
313
|
zoneCount: zoneCount,
|
|
316
|
-
toJSON:
|
|
314
|
+
toJSON: () => {
|
|
317
315
|
return {
|
|
318
316
|
zones: zones,
|
|
319
317
|
zoneCount: zoneCount,
|
|
320
318
|
};
|
|
321
319
|
},
|
|
322
320
|
};
|
|
323
|
-
|
|
321
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
324
322
|
return jsonResults.result;
|
|
325
|
-
}
|
|
326
|
-
|
|
323
|
+
}
|
|
324
|
+
getApiTypeFromSetZones(zones, zoneCount) {
|
|
327
325
|
return 'LocalSpatialAudioEngine_setZones_414a27e';
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
}
|
|
327
|
+
setPlayerAttenuation(playerId, attenuation, forceSet) {
|
|
328
|
+
const apiType = this.getApiTypeFromSetPlayerAttenuation(playerId, attenuation, forceSet);
|
|
329
|
+
const jsonParams = {
|
|
332
330
|
playerId: playerId,
|
|
333
331
|
attenuation: attenuation,
|
|
334
332
|
forceSet: forceSet,
|
|
335
|
-
toJSON:
|
|
333
|
+
toJSON: () => {
|
|
336
334
|
return {
|
|
337
335
|
playerId: playerId,
|
|
338
336
|
attenuation: attenuation,
|
|
@@ -340,22 +338,21 @@ var ILocalSpatialAudioEngineImpl = /** @class */ (function () {
|
|
|
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
|
+
getApiTypeFromSetPlayerAttenuation(playerId, attenuation, forceSet) {
|
|
347
345
|
return 'LocalSpatialAudioEngine_setPlayerAttenuation_a15bc51';
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
346
|
+
}
|
|
347
|
+
clearRemotePositions() {
|
|
348
|
+
const apiType = this.getApiTypeFromClearRemotePositions();
|
|
349
|
+
const jsonParams = {};
|
|
350
|
+
const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
|
|
353
351
|
return jsonResults.result;
|
|
354
|
-
}
|
|
355
|
-
|
|
352
|
+
}
|
|
353
|
+
getApiTypeFromClearRemotePositions() {
|
|
356
354
|
return 'LocalSpatialAudioEngine_clearRemotePositions';
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
}());
|
|
355
|
+
}
|
|
356
|
+
}
|
|
360
357
|
exports.ILocalSpatialAudioEngineImpl = ILocalSpatialAudioEngineImpl;
|
|
361
|
-
|
|
358
|
+
const IrisApiEngine_1 = require("../internal/IrisApiEngine");
|