@reactoo/watchtogether-sdk-js 2.8.19 → 2.8.21
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
|
@@ -61,6 +61,12 @@ let roomSession = function ({roomId, pinHash, role, options = {}}, room, wt) {
|
|
|
61
61
|
___.__parseDataMessageEvents(data);
|
|
62
62
|
})
|
|
63
63
|
|
|
64
|
+
room.on('error', (e) => {
|
|
65
|
+
if(e?.type === 'error') {
|
|
66
|
+
___.disconnect(true);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
64
70
|
return (___ = {
|
|
65
71
|
|
|
66
72
|
syncModule: null,
|
|
@@ -2878,6 +2878,24 @@ class RoomSession {
|
|
|
2878
2878
|
config.stream = new MediaStream();
|
|
2879
2879
|
}
|
|
2880
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
|
+
|
|
2881
2899
|
let transceivers = config.pc.getTransceivers();
|
|
2882
2900
|
let existingTracks = [...(config.streamMap?.[this.id]?.[source] || [])];
|
|
2883
2901
|
|