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