twilio-video 2.22.2 → 2.24.1
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/CHANGELOG.md +72 -1
- package/README.md +1 -1
- package/dist/twilio-video.js +767 -204
- package/dist/twilio-video.min.js +21 -20
- package/es5/connect.js +1 -1
- package/es5/connect.js.map +1 -1
- package/es5/createlocaltrack.js +38 -8
- package/es5/createlocaltrack.js.map +1 -1
- package/es5/createlocaltracks.js +36 -11
- package/es5/createlocaltracks.js.map +1 -1
- package/es5/index.js +1 -1
- package/es5/index.js.map +1 -1
- package/es5/localparticipant.js +10 -1
- package/es5/localparticipant.js.map +1 -1
- package/es5/media/track/localaudiotrack.js +30 -1
- package/es5/media/track/localaudiotrack.js.map +1 -1
- package/es5/media/track/localvideotrack.js +1 -1
- package/es5/media/track/localvideotrack.js.map +1 -1
- package/es5/media/track/noisecancellationimpl.js +228 -0
- package/es5/media/track/noisecancellationimpl.js.map +1 -0
- package/es5/noisecancellationadapter.js +155 -0
- package/es5/noisecancellationadapter.js.map +1 -0
- package/es5/preflight/preflighttest.js +2 -2
- package/es5/preflight/preflighttest.js.map +1 -1
- package/es5/room.js +12 -0
- package/es5/room.js.map +1 -1
- package/es5/signaling/localparticipant.js +4 -2
- package/es5/signaling/localparticipant.js.map +1 -1
- package/es5/signaling/v2/cancelableroomsignalingpromise.js +0 -2
- package/es5/signaling/v2/cancelableroomsignalingpromise.js.map +1 -1
- package/es5/signaling/v2/localparticipant.js +16 -4
- package/es5/signaling/v2/localparticipant.js.map +1 -1
- package/es5/signaling/v2/localtrackpublication.js +12 -3
- package/es5/signaling/v2/localtrackpublication.js.map +1 -1
- package/es5/signaling/v2/room.js +8 -1
- package/es5/signaling/v2/room.js.map +1 -1
- package/es5/vendor/dynamicimport.js +44 -0
- package/es5/vendor/dynamicimport.js.map +1 -0
- package/karma/makeconf.js +11 -1
- package/lib/connect.js +2 -1
- package/lib/createlocaltrack.js +41 -8
- package/lib/createlocaltracks.ts +35 -11
- package/lib/index.ts +5 -3
- package/lib/localparticipant.js +10 -1
- package/lib/media/track/localaudiotrack.js +30 -0
- package/lib/media/track/localvideotrack.js +1 -1
- package/lib/media/track/noisecancellationimpl.ts +176 -0
- package/lib/noisecancellationadapter.ts +134 -0
- package/lib/preflight/preflighttest.ts +1 -1
- package/lib/room.js +13 -0
- package/lib/signaling/localparticipant.js +3 -2
- package/lib/signaling/v2/cancelableroomsignalingpromise.js +0 -3
- package/lib/signaling/v2/localparticipant.js +17 -4
- package/lib/signaling/v2/localtrackpublication.js +14 -3
- package/lib/signaling/v2/room.js +13 -1
- package/lib/vendor/dynamicimport.js +44 -0
- package/package.json +2 -2
- package/tsconfig.json +1 -0
- package/tsdef/AudioProcessor.d.ts +65 -0
- package/tsdef/LocalAudioTrack.d.ts +2 -0
- package/tsdef/LocalTrackOptions.d.ts +1 -1
- package/tsdef/index.d.ts +7 -2
- package/tsdef/types.d.ts +23 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,77 @@ 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.24.1 (September 6, 2022)
|
|
6
|
+
==========================
|
|
7
|
+
|
|
8
|
+
Bug Fixes
|
|
9
|
+
---------
|
|
10
|
+
|
|
11
|
+
- Fixed a bug where sometimes a runtime error was raised on iOS devices as shown below. (VIDEO-11263)
|
|
12
|
+
```
|
|
13
|
+
Unhandled Runtime Error: TypeError: null is not an object (evaluating 'el.paused')
|
|
14
|
+
```
|
|
15
|
+
- The LocalTrackOptions type definition now contains `logLevel` as an optional property. (VIDEO-10659)
|
|
16
|
+
- Fixed an issue where the `import` keyword was causing problems in webpack and typescript projects. (VIDEO-11220)
|
|
17
|
+
|
|
18
|
+
2.24.0 (August 22, 2022)
|
|
19
|
+
========================
|
|
20
|
+
|
|
21
|
+
New Features
|
|
22
|
+
------------
|
|
23
|
+
|
|
24
|
+
- The support for twilio approved 3rd party noise cancellation solutions is now **generally available**.
|
|
25
|
+
|
|
26
|
+
Bug Fixes
|
|
27
|
+
---------
|
|
28
|
+
|
|
29
|
+
- Fixed an issue where input media track was not stopped, after `localAudioTrack.stop()` when using noiseCancellation (VIDEO-11047)
|
|
30
|
+
- Added versioning support for noise cancellation plugin. This SDK will require noise cancellation plugin to be version 1.0.0 or greater. (VIDEO-11087)
|
|
31
|
+
|
|
32
|
+
2.23.0 (July 28, 2022)
|
|
33
|
+
======================
|
|
34
|
+
|
|
35
|
+
New Features
|
|
36
|
+
------------
|
|
37
|
+
|
|
38
|
+
- This release adds private beta support for 3rd party noise cancellation solution. You need to host twilio approved 3rd party plugin on your web server to enable noise cancellation. Please fill out [this form](https://forms.gle/eeFyoGJj1mgMrxN88) to request access to the 3rd party plugin.
|
|
39
|
+
|
|
40
|
+
Once you get the access to the plugin, You can install it from npm with:
|
|
41
|
+
```
|
|
42
|
+
npm install <noise_cancellation_plugin>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Once installed, you need to host the contents of `./node_modules/<noise_cancellation_plugin>/dist/` from your web server. We recommend that you add plugin version number to the hosted path to ensure that browser does not use [stale version](https://www.keycdn.com/support/what-is-cache-busting) when its updated. You need to pass the path to the hosted files to `twilio-video` sdk when creating audio track as shown in the example below. The example below assumes that you have hosted the files at `/noise_cancellation_plugin/1.0.0/dist` on your web server.
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
const { connect, createLocalAudioTrack } = require('twilio-video');
|
|
49
|
+
|
|
50
|
+
// create a local audio track and have it use
|
|
51
|
+
// @twilio/krisp-audio-plugin for noise cancellation processing.
|
|
52
|
+
const localAudioTrack = await Video.createLocalAudioTrack({
|
|
53
|
+
noiseCancellationOptions: {
|
|
54
|
+
vendor: 'krisp',
|
|
55
|
+
sdkAssetsPath: '/noise_cancellation_plugin/1.0.0/dist'
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// publish the track to a room
|
|
60
|
+
const room = await connect( token, {
|
|
61
|
+
tracks: [localAudioTrack]
|
|
62
|
+
// ... any other connect options
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// you can enable/disable noise cancellation at runtime
|
|
66
|
+
// using noiseCancellation interface exposed by localAudioTrack
|
|
67
|
+
function updateNoiseCancellation(enable: boolean) {
|
|
68
|
+
const noiseCancellation = localAudioTrack.noiseCancellation;
|
|
69
|
+
|
|
70
|
+
if (noiseCancellation) {
|
|
71
|
+
enable ? noiseCancellation.enable() : noiseCancellation.disable();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
```
|
|
5
76
|
2.22.2 (July 25, 2022)
|
|
6
77
|
======================
|
|
7
78
|
|
|
@@ -9,7 +80,7 @@ Changes
|
|
|
9
80
|
-------
|
|
10
81
|
|
|
11
82
|
- `isSupported` flag now returns `false` if the browser does not support the Unified Plan SDP format. (VIDEO-10307)
|
|
12
|
-
|
|
83
|
+
|
|
13
84
|
The following is a list of browsers with Unified Plan as the default SDP format.
|
|
14
85
|
- Chrome 72+
|
|
15
86
|
- Safari 12.1+
|
package/README.md
CHANGED
|
@@ -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.24.1/twilio-video.min.js"></script>
|
|
78
78
|
|
|
79
79
|
```
|
|
80
80
|
|