@signalwire/js v3.24.0
Devon-White
released this
08 Nov 10:52
·
262 commits
to main
since this release
Added
- Support for
lock
andunlock
onRoomSessions
. This will allow the locking of theRoomSession
which will prevent new members from being able to join. Additionally, room previews are stopped and replaced with a locked image. TheRoomSession
can be unlocked through theunlock
method.
const roomSession = new SignalWire.Video.RoomSession({
token: "<YourRoomToken>",
rootElement: document.getElementById("myVideoElement"),
});
// Short example that locks the room when a member joins and unlocks it when they leave.
roomSession.on("member.joined", (e) => {
roomSession.lock();
});
roomSession.on("member.leave", (e) => {
roomSession.unlock();
});
Fixed
- Removed Video prefix from
member.updated
events to emit them properly.
Updated
- @singalwire/webrtc dependency
- @signalwire/core dependecy