@signalwire/js v3.2.0
danieleds
released this
09 Sep 18:16
·
808 commits
to main
since this release
Highlights
We are excited to announce the release of @signalwire/js v3.2.0.
With this new version of the JS SDK we have introduced the ability to record your rooms! As usual, this is a matter of a few lines of codes. For example:
const rec = await room.startRecording()
await rec.stop()
await room.getRecordings()
/*
{
"recordings": [
{
"id": "94ec917c-ff9c-4d57-9111-7d93a8f6e3e8",
"state": "completed",
"duration": 4.66,
"started_at": 1630681129.936,
"ended_at": 1630681133.7655
}
]
}
*/
After a room has been recorded, you can download the mp4 file from SignalWire's servers to obtain your video recording. You can do that by using the REST API:
curl --request GET \
--url https://<yourspace>.signalwire.com/api/video/room_recordings/94ec917c-ff9c-4d57-9111-7d93a8f6e3e8 \
--header 'Accept: application/json' \
--header 'Authorization: Basic <your API token>'
The above GET request will return a recording object with a uri
field that you can follow to obtain the mp4 file.
New Features
- #261
9dd7dbb
Room objects now exposes the methods startRecording and getRecordings, which you can use for controlling recordings of the current room session. - Room objects now emit events associated with recordings. These are
recording.started
,recording.updated
, andrecording.ended
.
Improvements
- #257
7380582
We have improved the TypeScript documentation for the WebRTC methods. Enjoy the rich method descriptions and examples from IntelliSense, without leaving your editor:
Deprecations
- #273
249facf
For consistency, we have renamed the old eventsmember.talking.start
andmember.talking.stop
into, respectively,member.talking.started
andmember.talking.ended
. The old event names have been deprecated and will be removed in future releases.
Fixes
- We have included minor bug fixes
For the detailed changelog, see CHANGELOG.md.