@reactoo/watchtogether-sdk-js 2.5.80 → 2.5.82
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/dist/watchtogether-sdk.js +747 -724
- package/dist/watchtogether-sdk.min.js +2 -2
- package/package.json +1 -1
- package/src/models/utils.js +1 -1
- package/src/modules/wt-room.js +9 -1
package/package.json
CHANGED
package/src/models/utils.js
CHANGED
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
video: {
|
|
26
26
|
...(vDeviceId && {deviceId: {exact:vDeviceId}}),
|
|
27
27
|
facingMode: {ideal: "user"},
|
|
28
|
-
...(lfps ? {frameRate: { ideal: 10, max: 30 }} : {frameRate: { ideal:
|
|
28
|
+
...(lfps ? {frameRate: { ideal: 10, max: 30 }} : {frameRate: { ideal: 30, max: 30 }}),
|
|
29
29
|
width: {ideal: isHd ? 1280 : 320},
|
|
30
30
|
height: {ideal: isHd ? 720 : 240},
|
|
31
31
|
}
|
package/src/modules/wt-room.js
CHANGED
|
@@ -96,7 +96,8 @@ class RoomSession {
|
|
|
96
96
|
|
|
97
97
|
static subscriptionRules = {
|
|
98
98
|
participant: {
|
|
99
|
-
"watchparty": ['participant', 'talkback'
|
|
99
|
+
"watchparty": ['participant', 'talkback'],
|
|
100
|
+
"studio": ['participant', 'talkback', 'host', 'observer'],
|
|
100
101
|
"commentary": ['participant', 'talkback', 'host'],
|
|
101
102
|
"videowall": ['host', 'talkback', 'observer', 'observerSolo1', 'observerSolo2', 'observerSolo3'],
|
|
102
103
|
"videowall-queue": ['host', 'talkback', 'observer', 'observerSolo1', 'observerSolo2', 'observerSolo3'],
|
|
@@ -104,6 +105,7 @@ class RoomSession {
|
|
|
104
105
|
},
|
|
105
106
|
monitor: {
|
|
106
107
|
"watchparty": ['participant', 'host'],
|
|
108
|
+
"studio": ['participant', 'host'],
|
|
107
109
|
"commentary": ['participant', 'host'],
|
|
108
110
|
"videowall": ['host', 'participant'],
|
|
109
111
|
"videowall-queue": ['host', 'participant'],
|
|
@@ -111,6 +113,7 @@ class RoomSession {
|
|
|
111
113
|
},
|
|
112
114
|
talkback: {
|
|
113
115
|
"watchparty": ['participant', 'host'],
|
|
116
|
+
"studio": ['participant', 'host'],
|
|
114
117
|
"commentary": ['host', 'participant'],
|
|
115
118
|
"videowall": ['host', 'participant'],
|
|
116
119
|
"videowall-queue": ['host', 'participant'],
|
|
@@ -118,6 +121,7 @@ class RoomSession {
|
|
|
118
121
|
},
|
|
119
122
|
observer: {
|
|
120
123
|
"watchparty": ['participant'],
|
|
124
|
+
"studio": ['participant'],
|
|
121
125
|
"commentary": ['participant'],
|
|
122
126
|
"videowall": ['participant'],
|
|
123
127
|
"videowall-queue": ['participant'],
|
|
@@ -125,6 +129,7 @@ class RoomSession {
|
|
|
125
129
|
},
|
|
126
130
|
observerSolo1: {
|
|
127
131
|
"watchparty": ['participant'],
|
|
132
|
+
"studio": ['participant'],
|
|
128
133
|
"commentary": ['participant'],
|
|
129
134
|
"videowall": ['participant'],
|
|
130
135
|
"videowall-queue": ['participant'],
|
|
@@ -132,6 +137,7 @@ class RoomSession {
|
|
|
132
137
|
},
|
|
133
138
|
observerSolo2: {
|
|
134
139
|
"watchparty": ['participant'],
|
|
140
|
+
"studio": ['participant'],
|
|
135
141
|
"commentary": ['participant'],
|
|
136
142
|
"videowall": ['participant'],
|
|
137
143
|
"videowall-queue": ['participant'],
|
|
@@ -139,6 +145,7 @@ class RoomSession {
|
|
|
139
145
|
},
|
|
140
146
|
observerSolo3: {
|
|
141
147
|
"watchparty": ['participant'],
|
|
148
|
+
"studio": ['participant'],
|
|
142
149
|
"commentary": ['participant'],
|
|
143
150
|
"videowall": ['participant'],
|
|
144
151
|
"videowall-queue": ['participant'],
|
|
@@ -146,6 +153,7 @@ class RoomSession {
|
|
|
146
153
|
},
|
|
147
154
|
host: {
|
|
148
155
|
"watchparty": [],
|
|
156
|
+
"studio": [],
|
|
149
157
|
"commentary": [],
|
|
150
158
|
"videowall": [],
|
|
151
159
|
"videowall-queue": [],
|