@reactoo/watchtogether-sdk-js 2.6.65 → 2.6.67
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
package/src/modules/wt-room.js
CHANGED
|
@@ -95,6 +95,7 @@ class RoomSession {
|
|
|
95
95
|
"watchparty": ['participant', 'talkback'],
|
|
96
96
|
"studio": ['participant', 'talkback', 'host', 'observer'],
|
|
97
97
|
"commentary": ['participant', 'talkback', 'host'],
|
|
98
|
+
"intercom": ['host', 'talkback', 'observer', 'observerSolo1', 'observerSolo2', 'observerSolo3'],
|
|
98
99
|
"videowall": ['host', 'talkback', 'observer', 'observerSolo1', 'observerSolo2', 'observerSolo3'],
|
|
99
100
|
"videowall-queue": ['host', 'talkback', 'observer', 'observerSolo1', 'observerSolo2', 'observerSolo3'],
|
|
100
101
|
"videowall-queue-video": ['host', 'talkback', 'observer', 'observerSolo1', 'observerSolo2', 'observerSolo3']
|
|
@@ -103,6 +104,7 @@ class RoomSession {
|
|
|
103
104
|
"watchparty": ['participant', 'host'],
|
|
104
105
|
"studio": ['participant', 'host', 'observer'],
|
|
105
106
|
"commentary": ['participant', 'host'],
|
|
107
|
+
"intercom": ['host', 'participant'],
|
|
106
108
|
"videowall": ['host', 'participant'],
|
|
107
109
|
"videowall-queue": ['host', 'participant'],
|
|
108
110
|
"videowall-queue-video": ['host', 'participant'],
|
|
@@ -111,6 +113,7 @@ class RoomSession {
|
|
|
111
113
|
"watchparty": ['participant', 'host', 'talkback'],
|
|
112
114
|
"studio": ['participant', 'host', 'observer', 'talkback'],
|
|
113
115
|
"commentary": ['host', 'participant', 'talkback'],
|
|
116
|
+
"intercom": ['host', 'participant', 'talkback'],
|
|
114
117
|
"videowall": ['host', 'participant', 'talkback'],
|
|
115
118
|
"videowall-queue": ['host', 'participant', 'talkback'],
|
|
116
119
|
"videowall-queue-video": ['host', 'participant', 'talkback'],
|
|
@@ -119,6 +122,7 @@ class RoomSession {
|
|
|
119
122
|
"watchparty": ['participant'],
|
|
120
123
|
"studio": ['participant'],
|
|
121
124
|
"commentary": ['participant'],
|
|
125
|
+
"intercom": ['participant'],
|
|
122
126
|
"videowall": ['participant'],
|
|
123
127
|
"videowall-queue": ['participant'],
|
|
124
128
|
"videowall-queue-video": ['participant'],
|
|
@@ -127,6 +131,7 @@ class RoomSession {
|
|
|
127
131
|
"watchparty": ['participant'],
|
|
128
132
|
"studio": ['participant'],
|
|
129
133
|
"commentary": ['participant'],
|
|
134
|
+
"intercom": ['participant'],
|
|
130
135
|
"videowall": ['participant'],
|
|
131
136
|
"videowall-queue": ['participant'],
|
|
132
137
|
"videowall-queue-video": ['participant'],
|
|
@@ -135,6 +140,7 @@ class RoomSession {
|
|
|
135
140
|
"watchparty": ['participant'],
|
|
136
141
|
"studio": ['participant'],
|
|
137
142
|
"commentary": ['participant'],
|
|
143
|
+
"intercom": ['participant'],
|
|
138
144
|
"videowall": ['participant'],
|
|
139
145
|
"videowall-queue": ['participant'],
|
|
140
146
|
"videowall-queue-video": ['participant'],
|
|
@@ -143,6 +149,7 @@ class RoomSession {
|
|
|
143
149
|
"watchparty": ['participant'],
|
|
144
150
|
"studio": ['participant'],
|
|
145
151
|
"commentary": ['participant'],
|
|
152
|
+
"intercom": ['participant'],
|
|
146
153
|
"videowall": ['participant'],
|
|
147
154
|
"videowall-queue": ['participant'],
|
|
148
155
|
"videowall-queue-video": ['participant'],
|
|
@@ -151,6 +158,7 @@ class RoomSession {
|
|
|
151
158
|
"watchparty": [],
|
|
152
159
|
"studio": [],
|
|
153
160
|
"commentary": [],
|
|
161
|
+
"intercom": [],
|
|
154
162
|
"videowall": [],
|
|
155
163
|
"videowall-queue": [],
|
|
156
164
|
"videowall-queue-video": [],
|
|
@@ -1425,7 +1433,7 @@ class RoomSession {
|
|
|
1425
1433
|
}
|
|
1426
1434
|
|
|
1427
1435
|
_getHandle(handleId, rfid = null, userId = null) {
|
|
1428
|
-
return this._participants.find(p => p.handleId === handleId || (rfid && p.rfid === rfid) || (userId && p.userId === userId));
|
|
1436
|
+
return this._participants.find(p => p.handleId === handleId || (rfid && p.rfid === rfid) || (userId && decodeJanusDisplay(p.userId)?.userId === userId));
|
|
1429
1437
|
}
|
|
1430
1438
|
|
|
1431
1439
|
_getStats(type = null) {
|
|
@@ -2473,6 +2481,7 @@ class RoomSession {
|
|
|
2473
2481
|
}
|
|
2474
2482
|
catch(e) {}
|
|
2475
2483
|
}
|
|
2484
|
+
return acc;
|
|
2476
2485
|
}, []);
|
|
2477
2486
|
}
|
|
2478
2487
|
return talkIntercomChannels;
|