@reactoo/watchtogether-sdk-js 2.6.67 → 2.6.68
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 +3 -3
- package/dist/watchtogether-sdk.min.js +2 -2
- package/example/bulk_join_room/bulk_join_room.html +30 -30
- package/example/bulk_join_room/bulk_join_room_2.css +6 -1
- package/example/bulk_join_room/bulk_join_room_2.html +304 -137
- package/example/bulk_join_room/sound_empty.mp3 +0 -0
- package/example/index.html +3 -3
- package/package.json +1 -1
- package/src/models/room-session.js +4 -0
- package/src/modules/wt-room.js +14 -3
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/1.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/10.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/11.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/12.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/13.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/14.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/15.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/16.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/17.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/18.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/19.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/2.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/20.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/21.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/22.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/23.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/24.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/25.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/26.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/27.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/28.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/29.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/3.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/30.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/31.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/32.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/4.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/5.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/6.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/7.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/8.gif +0 -0
- /package/example/bulk_join_room/{persons_gifs → persons_gifs_lq}/9.gif +0 -0
|
Binary file
|
package/example/index.html
CHANGED
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
Instance.room.getSessionByConstructId(constructId).setTalkIntercomChannels(groups)
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
let Instance = WatchTogetherSDK({debug:true
|
|
160
|
+
let Instance = WatchTogetherSDK({debug:true})({instanceType:'reactooDemo'});
|
|
161
161
|
|
|
162
162
|
Instance.auth.$on('login', () => {
|
|
163
163
|
console.log('We are in');
|
|
@@ -212,8 +212,8 @@
|
|
|
212
212
|
}})) // pin hash is not needed if you're owner of the room
|
|
213
213
|
.then(session => {
|
|
214
214
|
|
|
215
|
-
session.setTalkIntercomChannels([]);
|
|
216
|
-
session.setListenIntercomChannels([]);
|
|
215
|
+
// session.setTalkIntercomChannels([]);
|
|
216
|
+
// session.setListenIntercomChannels([]);
|
|
217
217
|
|
|
218
218
|
session.$on('connecting', (status) => {
|
|
219
219
|
console.log('connecting', status);
|
package/package.json
CHANGED
|
@@ -356,6 +356,10 @@ let roomSession = function ({roomId, pinHash, role}, room, wt) {
|
|
|
356
356
|
return room._listenIntercomChannels;
|
|
357
357
|
},
|
|
358
358
|
|
|
359
|
+
requestKeyFrame: (handleId, mid) => {
|
|
360
|
+
return room.requestKeyFrame(handleId, mid);
|
|
361
|
+
},
|
|
362
|
+
|
|
359
363
|
selectSubStream: (handleId, substream) => {
|
|
360
364
|
return room.selectSubStream(handleId, substream);
|
|
361
365
|
},
|
package/src/modules/wt-room.js
CHANGED
|
@@ -1617,6 +1617,9 @@ class RoomSession {
|
|
|
1617
1617
|
this._updateRemoteParticipantStreamMap(handle.handleId);
|
|
1618
1618
|
let mid = event.transceiver ? event.transceiver.mid : event.track.id;
|
|
1619
1619
|
let source = Object.keys(config.streamMap).find(key => config.streamMap[key].includes(event.track.id));
|
|
1620
|
+
if(event.track.kind === 'video') {
|
|
1621
|
+
this.requestKeyFrame(handle.handleId, mid);
|
|
1622
|
+
}
|
|
1620
1623
|
this.emit(this._getAddParticipantEventName(handle.handleId), {
|
|
1621
1624
|
tid: generateUUID(),
|
|
1622
1625
|
mid,
|
|
@@ -1823,7 +1826,7 @@ class RoomSession {
|
|
|
1823
1826
|
return null;
|
|
1824
1827
|
}
|
|
1825
1828
|
return this.sendMessage(handleId, {
|
|
1826
|
-
body: {"request": "configure", "audio": hasAudio, "video": hasVideo, "data": true, ...(this.recordingFilename ? {filename: this.recordingFilename} : {})},
|
|
1829
|
+
body: {"request": "configure", "keyframe": true, "audio": hasAudio, "video": hasVideo, "data": true, ...(this.recordingFilename ? {filename: this.recordingFilename} : {})},
|
|
1827
1830
|
jsep
|
|
1828
1831
|
}, false, false, 5);
|
|
1829
1832
|
})
|
|
@@ -2560,8 +2563,17 @@ class RoomSession {
|
|
|
2560
2563
|
}
|
|
2561
2564
|
}
|
|
2562
2565
|
|
|
2566
|
+
requestKeyFrame(handleId, mid) {
|
|
2567
|
+
this.sendMessage(handleId, {
|
|
2568
|
+
"body": {
|
|
2569
|
+
"request": "configure",
|
|
2570
|
+
"keyframe": true,
|
|
2571
|
+
...(mid ? {streams: [{mid,keyframe:true}]} : {})
|
|
2572
|
+
}
|
|
2573
|
+
}).catch(() => null)
|
|
2574
|
+
}
|
|
2563
2575
|
selectSubStream(handleId, substream = 2) {
|
|
2564
|
-
this.sendMessage(
|
|
2576
|
+
this.sendMessage(handleId, {
|
|
2565
2577
|
"body": {
|
|
2566
2578
|
"request": "configure",
|
|
2567
2579
|
"substream": substream
|
|
@@ -2569,7 +2581,6 @@ class RoomSession {
|
|
|
2569
2581
|
}).catch(() => null)
|
|
2570
2582
|
}
|
|
2571
2583
|
|
|
2572
|
-
|
|
2573
2584
|
setTalkIntercomChannels(groups = ['participants']) {
|
|
2574
2585
|
|
|
2575
2586
|
if(typeof groups !== 'object' || !("length" in groups)) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|