evmux-app-framework 0.0.61 → 0.0.63
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
|
@@ -11,7 +11,35 @@ export default class AppsObserverSocialHandler extends AppsObserverRequestHandle
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
async getStatistics(requestObj) {
|
|
14
|
-
return [
|
|
14
|
+
return [
|
|
15
|
+
{
|
|
16
|
+
"viewers": null,
|
|
17
|
+
"type": "linkedinProfile"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"viewers": 25,
|
|
21
|
+
"type": "twitterProfile",
|
|
22
|
+
"statistics": null,
|
|
23
|
+
"last_subscribers": null
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"viewers": 11,
|
|
27
|
+
"type": "twitchProfile",
|
|
28
|
+
"statistics": {
|
|
29
|
+
"channel": {
|
|
30
|
+
"subscribers": 15
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"last_subscribers": null
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"viewers": 17,
|
|
37
|
+
"type": "evmuxPlayer",
|
|
38
|
+
"statistics": null,
|
|
39
|
+
"last_subscribers": null
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
{
|
|
15
43
|
"viewers": 13,
|
|
16
44
|
"type": "youtubeChannel",
|
|
17
45
|
"statistics": {
|
|
@@ -42,8 +70,6 @@ export default class AppsObserverSocialHandler extends AppsObserverRequestHandle
|
|
|
42
70
|
}, {
|
|
43
71
|
"viewers": 22,
|
|
44
72
|
"type": "facebookProfile", "statistics": {"total_reactions": 1}}]
|
|
45
|
-
|
|
46
|
-
|
|
47
73
|
}
|
|
48
74
|
|
|
49
75
|
}
|
|
@@ -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
|
}
|
package/src/system/EvWebrtc.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
export class EvWebrtc{
|
|
5
5
|
|
|
6
|
-
constructor(component, channelName = 'webrtc', codecPreferences = null, postSignaligMessageFunc = null, endedCallback = null) {
|
|
6
|
+
constructor(component, channelName = 'webrtc', codecPreferences = null, postSignaligMessageFunc = null, endedCallback = null, uniqId) {
|
|
7
7
|
|
|
8
8
|
this.component = component
|
|
9
9
|
this.channelName = channelName
|
|
@@ -15,6 +15,7 @@ export class EvWebrtc{
|
|
|
15
15
|
this.remoteStream = null
|
|
16
16
|
this.signaling = new BroadcastChannel(this.channelName);
|
|
17
17
|
this.signaling.onmessage = (e) => this.signalingMessageHandler(e);
|
|
18
|
+
this.uniqId = uniqId
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
postSignaligMessage(message){
|