twilio-video 2.30.0 → 2.32.0

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/.release.json CHANGED
@@ -18,6 +18,7 @@
18
18
  "git rm -rf --ignore-unmatch dist es5",
19
19
  "npm run build:quick",
20
20
  "git add package.json",
21
+ "git add package-lock.json",
21
22
  "git add -f dist es5",
22
23
  "git commit -m \"${RELEASE_VERSION}\"",
23
24
  "git tag ${RELEASE_VERSION}",
@@ -32,6 +33,7 @@
32
33
  "git rm -rf dist es5",
33
34
  "npm run clean",
34
35
  "git add package.json",
36
+ "git add package-lock.json",
35
37
  "git commit -m \"${DEVELOPMENT_VERSION}\"",
36
38
  "git push origin ${BRANCH}"
37
39
  ]
package/CHANGELOG.md CHANGED
@@ -2,6 +2,44 @@ The Twilio Programmable Video SDKs use [Semantic Versioning](http://www.semver.o
2
2
 
3
3
  **Version 1.x reached End of Life on September 8th, 2021.** See the changelog entry [here](https://www.twilio.com/changelog/end-of-life-complete-for-unsupported-versions-of-the-programmable-video-sdk). Support for the 1.x version ended on December 4th, 2020.
4
4
 
5
+ 2.32.0 (July 23, 2025)
6
+ ====================
7
+
8
+ New Features
9
+ ------------
10
+
11
+ ### Real-Time Transcriptions Support
12
+
13
+ Added real-time transcription capabilities for group rooms, allowing the capture and display of real-time captions during video calls.
14
+
15
+ #### Usage
16
+ To receive transcriptions, set the `receiveTranscriptions` option to `true` when connecting to a room. Then, subscribe to the `transcription` event to receive real-time transcription data:
17
+
18
+ ```js
19
+ import { connect } from 'twilio-video';
20
+
21
+ const room = await connect(token, {
22
+ name: 'my-room',
23
+ receiveTranscriptions: true
24
+ });
25
+
26
+ room.on('transcription', (transcriptionEvent) => {
27
+ console.log(`${transcriptionEvent.participant}: ${transcriptionEvent.transcription}`);
28
+ });
29
+ ```
30
+
31
+ See the [Transcription's](https://www.twilio.com/docs/video/api/transcriptions) documentation for more details.
32
+
33
+ 2.31.0 (April 21, 2025)
34
+ =======================
35
+
36
+ New Features
37
+ ------------
38
+
39
+ ### Document Picture-in-Picture API Support
40
+
41
+ Previously, when `Client Track Switch Off Control` was set to `auto`, video tracks were automatically switched off—even if they were visible and rendered in a [Document Picture-in-Picture](https://developer.chrome.com/docs/web-platform/document-picture-in-picture) (PiP) window. This caused issues where users could see the video element, but the track itself was disabled. In this new SDK version, video tracks will remain active and continue to play when displayed in a PiP window.
42
+
5
43
  2.30.0 (March 28, 2025)
6
44
  ========================
7
45
 
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  twilio-video.js
2
2
  ===============
3
3
 
4
- [![NPM](https://img.shields.io/npm/v/twilio-video.svg)](https://www.npmjs.com/package/twilio-video) [![CircleCI](https://circleci.com/gh/twilio/twilio-video.js/tree/master.svg?style=svg&circle-token=80e91c8284c21ff16d3003702e17b903c0b32f1d)](https://circleci.com/gh/twilio/twilio-video.js/tree/master)
4
+ [![NPM](https://img.shields.io/npm/v/twilio-video.svg)](https://www.npmjs.com/package/twilio-video) [![CircleCI](https://dl.circleci.com/status-badge/img/gh/twilio/twilio-video.js/tree/master.svg?style=shield&circle-token=CCIPRJ_7qmZwk292pKYnNqeFyi5x8_a409cfa25489fb617be3c56119e8064cc77ffb80)](https://circleci.com/gh/twilio/twilio-video.js/tree/master)
5
5
 
6
6
  twilio-video.js allows you to add real-time voice and video to your web apps.
7
7
 
@@ -74,7 +74,7 @@ Releases of twilio-video.js are hosted on a CDN, and you can include these
74
74
  directly in your web app using a <script> tag.
75
75
 
76
76
  ```html
77
- <script src="//sdk.twilio.com/js/video/releases/2.30.0/twilio-video.min.js"></script>
77
+ <script src="//sdk.twilio.com/js/video/releases/2.32.0/twilio-video.min.js"></script>
78
78
  ```
79
79
 
80
80
  Using this method, twilio-video.js will set a browser global: