evmux-app-framework 0.0.60 → 0.0.62
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/package.json
CHANGED
|
@@ -6,19 +6,19 @@ export default class EvmuxAppsApiLog {
|
|
|
6
6
|
this.evmuxAppsApi = evmuxAppsApi;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
async error(
|
|
10
|
-
return this._doLog(
|
|
9
|
+
async error(tag, msg) {
|
|
10
|
+
return this._doLog(tag, msg, 'error');
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
async warning(
|
|
14
|
-
return this._doLog(
|
|
13
|
+
async warning(tag, msg) {
|
|
14
|
+
return this._doLog(tag, msg, 'warning');
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
async info(
|
|
18
|
-
return this._doLog(
|
|
17
|
+
async info(tag, msg) {
|
|
18
|
+
return this._doLog(tag, msg, 'info');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
async _doLog(
|
|
21
|
+
async _doLog(tag, msg, level) {
|
|
22
22
|
let loglevel = null;
|
|
23
23
|
switch (level) {
|
|
24
24
|
case 'error':
|
|
@@ -39,7 +39,11 @@ export default class EvmuxAppsApiLog {
|
|
|
39
39
|
request: loglevel,
|
|
40
40
|
userAppInstanceId: this.evmuxAppsApi._userAppInstanceId,
|
|
41
41
|
componentId: this.evmuxAppsApi._componentId,
|
|
42
|
-
data
|
|
42
|
+
data: {
|
|
43
|
+
tag,
|
|
44
|
+
msg,
|
|
45
|
+
level
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
return this.evmuxAppsApi._postMessageManager.sendRequestAsync(reqObj);
|
|
45
49
|
|
|
@@ -30,14 +30,14 @@ export default class EvmuxAppsApiStudio {
|
|
|
30
30
|
return this.evmuxAppsApi._postMessageManager.sendRequestAsync(reqObj);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
async getSoundRtc(
|
|
33
|
+
async getSoundRtc(type = 'scene', layerId = null, preferedCodecs = null){ // userType: 'editor' | 'speaker' | 'guest'
|
|
34
34
|
let reqObj = {
|
|
35
35
|
request: availableRequests.getSoundRtc,
|
|
36
36
|
userAppInstanceId: this.evmuxAppsApi._userAppInstanceId,
|
|
37
37
|
componentId: this.evmuxAppsApi._componentId,
|
|
38
38
|
data: {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
type,
|
|
40
|
+
layerId,
|
|
41
41
|
preferedCodecs
|
|
42
42
|
}
|
|
43
43
|
}
|