twilio-video 2.22.0 → 2.22.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 +9 -0
- package/README.md +1 -1
- package/dist/twilio-video.js +25 -9
- package/dist/twilio-video.min.js +12 -12
- package/es5/signaling/v2/peerconnection.js +23 -7
- package/es5/signaling/v2/peerconnection.js.map +1 -1
- package/lib/signaling/v2/peerconnection.js +22 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@ 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.22.1 (July 11, 2022)
|
|
6
|
+
======================
|
|
7
|
+
|
|
8
|
+
Bug Fixes
|
|
9
|
+
---------
|
|
10
|
+
|
|
11
|
+
- The encoding of audio and screen share Tracks are prioritized in Chrome and Safari, thereby more gracefully degrading
|
|
12
|
+
their quality in limited network conditions. (VIDEO-10212)
|
|
13
|
+
|
|
5
14
|
2.22.0 (July 5, 2022)
|
|
6
15
|
====================
|
|
7
16
|
|
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.22.
|
|
77
|
+
<script src="//sdk.twilio.com/js/video/releases/2.22.1/twilio-video.min.js"></script>
|
|
78
78
|
|
|
79
79
|
```
|
|
80
80
|
|
package/dist/twilio-video.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! twilio-video.js 2.22.
|
|
1
|
+
/*! twilio-video.js 2.22.1
|
|
2
2
|
|
|
3
3
|
The following license applies to all parts of this software except as
|
|
4
4
|
documented below.
|
|
@@ -14247,13 +14247,29 @@ function updateEncodingParameters(pcv2) {
|
|
|
14247
14247
|
else {
|
|
14248
14248
|
setMaxBitrate(params, maxBitrate);
|
|
14249
14249
|
}
|
|
14250
|
-
if (!isFirefox &&
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
|
|
14250
|
+
if (!isFirefox && params.encodings.length > 0) {
|
|
14251
|
+
if (sender.track.kind === 'audio') {
|
|
14252
|
+
// NOTE(mmalavalli): "priority" is a per-sender property and not
|
|
14253
|
+
// a per-encoding-layer property. So, we set the value only on the first
|
|
14254
|
+
// encoding layer. Any attempt to set the value on subsequent encoding
|
|
14255
|
+
// layers (in the case of simulcast) will result in the Promise returned
|
|
14256
|
+
// by RTCRtpSender.setParameters() being rejected. With this, audio encoding
|
|
14257
|
+
// is prioritized the most.
|
|
14258
|
+
params.encodings[0].priority = 'high';
|
|
14259
|
+
}
|
|
14260
|
+
else if (pcv2._isChromeScreenShareTrack(sender.track)) {
|
|
14261
|
+
// NOTE(mmalavalli): Screen share encodings are prioritized more than those
|
|
14262
|
+
// of the camera.
|
|
14263
|
+
params.encodings[0].priority = 'medium';
|
|
14264
|
+
}
|
|
14265
|
+
if (pcv2._enableDscp) {
|
|
14266
|
+
// NOTE(mmalavalli): "networkPriority" is a per-sender property and not
|
|
14267
|
+
// a per-encoding-layer property. So, we set the value only on the first
|
|
14268
|
+
// encoding layer. Any attempt to set the value on subsequent encoding
|
|
14269
|
+
// layers (in the case of simulcast) will result in the Promise returned
|
|
14270
|
+
// by RTCRtpSender.setParameters() being rejected.
|
|
14271
|
+
params.encodings[0].networkPriority = 'high';
|
|
14272
|
+
}
|
|
14257
14273
|
}
|
|
14258
14274
|
// when a sender is reused, delete any active encodings set by server.
|
|
14259
14275
|
var trackReplaced = pcv2._rtpNewSenders.has(sender);
|
|
@@ -28971,7 +28987,7 @@ module.exports={
|
|
|
28971
28987
|
"name": "twilio-video",
|
|
28972
28988
|
"title": "Twilio Video",
|
|
28973
28989
|
"description": "Twilio Video JavaScript Library",
|
|
28974
|
-
"version": "2.22.
|
|
28990
|
+
"version": "2.22.1",
|
|
28975
28991
|
"homepage": "https://twilio.com",
|
|
28976
28992
|
"author": "Mark Andrus Roberts <mroberts@twilio.com>",
|
|
28977
28993
|
"contributors": [
|