RELAY JS SDK 3.4.0 Release
· One min read
We are happy to announce JavaScript SDK 3.4.0.
Upgrading is straightforward with our release process, which adheres to Semantic Versioning. Minor versions are guaranteed to not have breaking changes, so you can upgrade with confidence.
We are excited to announce the latest release of the JavaScript SDK. This is a small release that focuses on the Playback feature.
Highlights
You can use the Playback feature to play a video stream inside a room session. For example:
const url = 'rtmp://...'
const playback = await roomSession.play({ url, volume: 10 })
await playback.pause()
await playback.stop()
At the moment, the supported formats are:
- RTMP (rtmp:// and rtmps://)
- HLS (.m3u8, application/x-mpegurl)
- MPEG-DASH (.mpd, application/dash+xml)
To use this feature, make sure to enable the room.playback
permission when generating the Video Room Token. You will also receive the following RoomSession events:
playback.started
: a playback has startedplayback.updated
: a playback has been updatedplayback.ended
: a playback has ended