@reactoo/watchtogether-sdk-js 2.8.18 → 2.8.20
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/live-barn.js
CHANGED
|
@@ -40,14 +40,16 @@ let liveBarn = function() {
|
|
|
40
40
|
return this.__privates.auth.__client
|
|
41
41
|
.then(client => client.apis.livebarn.getLiveBarnSurfaceById({id}));
|
|
42
42
|
},
|
|
43
|
-
getLiveBarnVenueList: ({fulltextPhrase, comingSoon, online, countries, sports, surfaceStatus, feedModes, cities, provinces, venueStatus, postalCode, uuid, surfaces, ids, size, startKey, sort} = {}) => {
|
|
43
|
+
getLiveBarnVenueList: ({fulltextPhrase, comingSoon, online, hasActive, hasStream, countries, sports, surfaceStatus, feedModes, cities, provinces, venueStatus, postalCode, uuid, surfaces, ids, size, startKey, sort} = {}) => {
|
|
44
44
|
return chunkArray(ids, 30)
|
|
45
45
|
.reduce((promiseChain, idsChunk) => {
|
|
46
46
|
return promiseChain.then(chainResponse => {
|
|
47
47
|
const apiParams = {
|
|
48
48
|
...(fulltextPhrase && {fulltextPhrase}),
|
|
49
|
-
...(comingSoon && {comingSoon}),
|
|
50
|
-
...(online && {online}),
|
|
49
|
+
...(comingSoon !== undefined && {comingSoon}),
|
|
50
|
+
...(online !== undefined && {online}),
|
|
51
|
+
...(hasActive !== undefined && {hasActive}),
|
|
52
|
+
...(hasStream !== undefined && {hasStream}),
|
|
51
53
|
...(countries?.length && {countries: countries.join(',')}),
|
|
52
54
|
...(sports?.length && {sports: sports.join(',')}),
|
|
53
55
|
...(surfaceStatus?.length && {surfaceStatus: surfaceStatus.join(',')}),
|
|
@@ -1071,11 +1071,12 @@ class RoomSession {
|
|
|
1071
1071
|
|
|
1072
1072
|
console.log('Retrying failed WebSocket request', requestData);
|
|
1073
1073
|
this._log('Retrying failed WebSocket request', requestData);
|
|
1074
|
-
|
|
1074
|
+
|
|
1075
1075
|
resolve(this.#sendWebsockets(request, ignoreResponse, dontResolveOnAck, retry - 1));
|
|
1076
1076
|
}
|
|
1077
1077
|
else {
|
|
1078
1078
|
|
|
1079
|
+
console.log('Waiting for WebSocket connection to open before sending request', requestData);
|
|
1079
1080
|
this._log('Waiting for WebSocket connection to open before sending request', requestData);
|
|
1080
1081
|
|
|
1081
1082
|
this._abortController.signal.addEventListener('abort', abort);
|
|
@@ -2877,6 +2878,24 @@ class RoomSession {
|
|
|
2877
2878
|
config.stream = new MediaStream();
|
|
2878
2879
|
}
|
|
2879
2880
|
|
|
2881
|
+
if(config.stream?.getVideoTracks()?.length > 5) {
|
|
2882
|
+
return {
|
|
2883
|
+
type: 'warning',
|
|
2884
|
+
id: 48,
|
|
2885
|
+
message: 'too many video tracks, only 5 supported',
|
|
2886
|
+
data: null
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
if(config.stream?.getAudioTracks()?.length > 5) {
|
|
2891
|
+
return {
|
|
2892
|
+
type: 'warning',
|
|
2893
|
+
id: 49,
|
|
2894
|
+
message: 'too many audio tracks, only 5 supported',
|
|
2895
|
+
data: null
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2880
2899
|
let transceivers = config.pc.getTransceivers();
|
|
2881
2900
|
let existingTracks = [...(config.streamMap?.[this.id]?.[source] || [])];
|
|
2882
2901
|
|