evmux-app-framework 0.0.62 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evmux-app-framework",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
  }
@@ -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){