@reactoo/watchtogether-sdk-js 2.6.0 → 2.6.2
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/models/asset.js
CHANGED
|
@@ -4,10 +4,11 @@ import {generateUUID} from "../modules/wt-utils";
|
|
|
4
4
|
|
|
5
5
|
let asset = function() {
|
|
6
6
|
return {
|
|
7
|
-
getAssetList: ({type = 'instanceType', instanceType, size = 20, startKey = null, roomId, ids}) => {
|
|
7
|
+
getAssetList: ({type = 'instanceType', instanceType, assetType, size = 20, startKey = null, roomId, ids}) => {
|
|
8
8
|
let apiParams = {
|
|
9
9
|
type,
|
|
10
10
|
...(instanceType && {instanceType: instanceType === true ? this.__instanceType : instanceType }),
|
|
11
|
+
...(assetType && {assetType}),
|
|
11
12
|
...(size && !ids && {size}),
|
|
12
13
|
...(ids && {ids: ids.join(',')}),
|
|
13
14
|
...(roomId && {roomId}),
|
|
@@ -71,6 +71,11 @@ let roomSession = function ({roomId, pinHash, role}, room, wt) {
|
|
|
71
71
|
return room.constructId;
|
|
72
72
|
},
|
|
73
73
|
|
|
74
|
+
// needs to be called before connect or it doesn't have any effect
|
|
75
|
+
changeUserRole: function (newRole) {
|
|
76
|
+
role = newRole;
|
|
77
|
+
},
|
|
78
|
+
|
|
74
79
|
kill: function () {
|
|
75
80
|
clearTimeout(alpTimeoutId);
|
|
76
81
|
this.detachPlayer();
|
|
@@ -85,7 +90,6 @@ let roomSession = function ({roomId, pinHash, role}, room, wt) {
|
|
|
85
90
|
return wt.room.destroySession(room.constructId)
|
|
86
91
|
},
|
|
87
92
|
|
|
88
|
-
|
|
89
93
|
iceRestart: function () {
|
|
90
94
|
return room._iceRestart(room.handleId);
|
|
91
95
|
},
|
package/src/modules/wt-room.js
CHANGED
|
@@ -105,7 +105,7 @@ class RoomSession {
|
|
|
105
105
|
},
|
|
106
106
|
monitor: {
|
|
107
107
|
"watchparty": ['participant', 'host'],
|
|
108
|
-
"studio": ['participant', 'host'],
|
|
108
|
+
"studio": ['participant', 'host', 'observer'],
|
|
109
109
|
"commentary": ['participant', 'host'],
|
|
110
110
|
"videowall": ['host', 'participant'],
|
|
111
111
|
"videowall-queue": ['host', 'participant'],
|
|
@@ -113,7 +113,7 @@ class RoomSession {
|
|
|
113
113
|
},
|
|
114
114
|
talkback: {
|
|
115
115
|
"watchparty": ['participant', 'host'],
|
|
116
|
-
"studio": ['participant', 'host'],
|
|
116
|
+
"studio": ['participant', 'host', 'observer'],
|
|
117
117
|
"commentary": ['host', 'participant'],
|
|
118
118
|
"videowall": ['host', 'participant'],
|
|
119
119
|
"videowall-queue": ['host', 'participant'],
|