Skip to content

@signalwire/js v3.13.0

Compare
Choose a tag to compare
@rsowald rsowald released this 14 Jul 20:28
· 553 commits to main since this release
0d2eefb

Version 3.13 of the JavaScript SDK is out! We have added a couple of improvements. Here are the highlights.

Highlights

RoomSession event room.left

  • We have added a new event room.left which allows users to listen for when a RoomSession's creator leaves the RoomSession. 20f61a7
    For example:
room.on("room.left", () => {
      console.log("You have left the room.")
});

Video Playback

We have exposed methods to seek a specific video position during playback. d308daf
These include:

  • playback.seek(timecode) seeks the current playback time to the specified absolute position.
const playback = await roomSession.play({ url: "rtmp://example.com/foo" });
await playback.seek(30_000); // 30th second
  • playback.forward(offset) seeks the current playback time forward by the specified offset.
const playback = await roomSession.play({ url: "rtmp://example.com/foo" });
await playback.forward(5000); // 5 seconds
  • playback.rewind(offset) seeks the current playback time backward by the specified offset.
const playback = await roomSession.play({ url: "rtmp://example.com/foo" });
await playback.rewind(5000); // 5 seconds

Note that the boolean property seekable has been added to RoomSessionPlayback to support these methods.

Improvements

  • Enabled pingSupported by default for all WebRTC Connections to check for disconnected participants. 4300716

Fixes

  • Patch to address occasional screen share hangups. bbc21e4