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 +2 -0
- package/CHANGELOG.md +38 -0
- package/README.md +2 -2
- package/dist/twilio-video.js +262 -158
- package/dist/twilio-video.min.js +22 -22
- package/es5/connect.js +3 -0
- package/es5/connect.js.map +1 -1
- package/es5/media/track/remotevideotrack.js +21 -8
- package/es5/media/track/remotevideotrack.js.map +1 -1
- package/es5/room.js +20 -0
- package/es5/room.js.map +1 -1
- package/es5/signaling/v2/cancelableroomsignalingpromise.js +2 -1
- package/es5/signaling/v2/cancelableroomsignalingpromise.js.map +1 -1
- package/es5/signaling/v2/room.js +13 -0
- package/es5/signaling/v2/room.js.map +1 -1
- package/es5/signaling/v2/transcriptionsignaling.js +47 -0
- package/es5/signaling/v2/transcriptionsignaling.js.map +1 -0
- package/es5/signaling/v2/twilioconnectiontransport.js +6 -3
- package/es5/signaling/v2/twilioconnectiontransport.js.map +1 -1
- package/es5/util/index.js +4 -1
- package/es5/util/index.js.map +1 -1
- package/lib/connect.js +3 -0
- package/lib/media/track/remotevideotrack.js +25 -8
- package/lib/room.js +22 -0
- package/lib/signaling/v2/cancelableroomsignalingpromise.js +2 -0
- package/lib/signaling/v2/room.js +13 -0
- package/lib/signaling/v2/transcriptionsignaling.js +33 -0
- package/lib/signaling/v2/twilioconnectiontransport.js +7 -4
- package/lib/util/index.js +5 -1
- package/package.json +1 -1
- package/tsdef/Room.d.ts +2 -1
- package/tsdef/index.d.ts +1 -0
- package/tsdef/twilio-video-tests.ts +5 -0
- package/tsdef/types.d.ts +14 -1
- package/appveyor.yml +0 -20
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
|
-
[](https://www.npmjs.com/package/twilio-video) [](https://www.npmjs.com/package/twilio-video) [](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.
|
|
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:
|