twilio-video 2.19.1 → 2.20.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +1 -1
  3. package/dist/twilio-video.js +331 -575
  4. package/dist/twilio-video.min.js +22 -22
  5. package/es5/preflight/getturncredentials.js +14 -9
  6. package/es5/preflight/getturncredentials.js.map +1 -1
  7. package/es5/preflight/preflighttest.js +115 -75
  8. package/es5/preflight/preflighttest.js.map +1 -1
  9. package/es5/signaling/v2/peerconnection.js +49 -104
  10. package/es5/signaling/v2/peerconnection.js.map +1 -1
  11. package/es5/signaling/v2/twilioconnectiontransport.js +2 -7
  12. package/es5/signaling/v2/twilioconnectiontransport.js.map +1 -1
  13. package/es5/util/constants.js +1 -0
  14. package/es5/util/constants.js.map +1 -1
  15. package/es5/util/sdp/index.js +24 -92
  16. package/es5/util/sdp/index.js.map +1 -1
  17. package/es5/util/sdp/issue8329.js +1 -2
  18. package/es5/util/sdp/issue8329.js.map +1 -1
  19. package/es5/util/sdp/simulcast.js +6 -29
  20. package/es5/util/sdp/simulcast.js.map +1 -1
  21. package/es5/util/sdp/{trackmatcher/mid.js → trackmatcher.js} +11 -11
  22. package/es5/util/sdp/trackmatcher.js.map +1 -0
  23. package/lib/preflight/getturncredentials.ts +18 -9
  24. package/lib/preflight/preflighttest.ts +110 -74
  25. package/lib/signaling/v2/peerconnection.js +51 -113
  26. package/lib/signaling/v2/twilioconnectiontransport.js +3 -10
  27. package/lib/util/constants.js +1 -0
  28. package/lib/util/sdp/index.js +24 -99
  29. package/lib/util/sdp/issue8329.js +2 -3
  30. package/lib/util/sdp/simulcast.js +7 -31
  31. package/lib/util/sdp/{trackmatcher/mid.js → trackmatcher.js} +6 -6
  32. package/package.json +1 -1
  33. package/tsdef/PreflightTypes.d.ts +6 -2
  34. package/tsdef/preflighttest.d.ts +1 -1
  35. package/tsdef/types.d.ts +1 -0
  36. package/es5/util/sdp/trackmatcher/identity.js +0 -25
  37. package/es5/util/sdp/trackmatcher/identity.js.map +0 -1
  38. package/es5/util/sdp/trackmatcher/mid.js.map +0 -1
  39. package/es5/util/sdp/trackmatcher/ordered.js +0 -111
  40. package/es5/util/sdp/trackmatcher/ordered.js.map +0 -1
  41. package/lib/util/sdp/trackmatcher/identity.js +0 -24
  42. package/lib/util/sdp/trackmatcher/ordered.js +0 -120
package/CHANGELOG.md CHANGED
@@ -2,15 +2,37 @@ 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.20.0 (February 10, 2022)
6
+ ==========================
7
+
8
+ Changes
9
+ -------
10
+
11
+ The Preflight API ([runPreflight](https://sdk.twilio.com/js/video/releases/2.20.0/docs/module-twilio-video.html#.runPreflight__anchor)), originally released in [2.16.0](#2160-august-11-2021), has been promoted to GA.
12
+
13
+ Thank you @morninng @eroidaaruqaj [#1622](https://github.com/twilio/twilio-video.js/issues/1622) for your feedback. Based on this feedback, we have made the following changes to `runPreflight`. (VIDEO-7728)
14
+
15
+ - The [failed](https://sdk.twilio.com/js/video/releases/2.20.0/docs/PreflightTest.html#event:failed) event now provides a [PreflightTestReport](https://sdk.twilio.com/js/video/releases/2.20.0/docs/global.html#PreflightTestReport) which include partial results gathered during the test. Use this in addition to the error object to get more insights on the failure.
16
+
17
+ - Signaling and Media Connection errors are now properly surfaced via the [failed](https://sdk.twilio.com/js/video/releases/2.20.0/docs/PreflightTest.html#event:failed) event.
18
+
19
+ - [PreflightTestReport](https://sdk.twilio.com/js/video/releases/2.20.0/docs/global.html#PreflightTestReport) now includes a `progressEvents` property. This new property is an array of [PreflightProgress](https://sdk.twilio.com/js/video/releases/2.20.0/docs/global.html#PreflightProgress) events detected during the test. Use this information to determine which steps were completed and which ones were not.
20
+
21
+ You can learn more about `runPreflight` usage in the documentation, [here](twilio.com/docs/video/troubleshooting/preflight-api).
22
+
23
+ Other changes in this release includes:
24
+
25
+ - In [October 2019](#200-beta15-october-24-2019), twilio-video.js started using Unified Plan where available, while also maintaining support for earlier browser versions with Plan B as the default SDP format. With this release, twilio-video.js will now stop supporting the Plan B SDP format and will only support the Unified Plan SDP format. Please refer to this [changelog](#200-beta15-october-24-2019) and this [public advisory](https://support.twilio.com/hc/en-us/articles/360039098974-Upcoming-Breaking-Changes-in-Twilio-Video-JavaScript-SDK-Google-Chrome) for more related information. (VIDEO-6587)
26
+
5
27
  2.19.1 (February 7, 2022)
6
28
  =========================
29
+
7
30
  Bug Fixes
8
31
  ---------
9
32
 
10
33
  - Fixed a bug where media connection was not getting reconnected after a network interruption if participant was not subscribed to any tracks. (VIDEO-8315)
11
34
  - Fixed a bug where network quality score stops updating after network glitches. (VIDEO-8413)
12
35
 
13
-
14
36
  2.19.0 (January 31, 2022)
15
37
  =========================
16
38
 
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.19.1/twilio-video.min.js"></script>
77
+ <script src="//sdk.twilio.com/js/video/releases/2.20.0/twilio-video.min.js"></script>
78
78
 
79
79
  ```
80
80