twilio-video 2.19.1 → 2.21.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 (56) hide show
  1. package/CHANGELOG.md +48 -1
  2. package/README.md +8 -9
  3. package/dist/twilio-video.js +508 -687
  4. package/dist/twilio-video.min.js +22 -22
  5. package/es5/connect.js +0 -2
  6. package/es5/connect.js.map +1 -1
  7. package/es5/createlocaltrack.js +0 -2
  8. package/es5/createlocaltrack.js.map +1 -1
  9. package/es5/createlocaltracks.js +152 -92
  10. package/es5/createlocaltracks.js.map +1 -1
  11. package/es5/index.js +19 -8
  12. package/es5/index.js.map +1 -1
  13. package/es5/preflight/getturncredentials.js +14 -9
  14. package/es5/preflight/getturncredentials.js.map +1 -1
  15. package/es5/preflight/preflighttest.js +115 -75
  16. package/es5/preflight/preflighttest.js.map +1 -1
  17. package/es5/signaling/v2/peerconnection.js +50 -105
  18. package/es5/signaling/v2/peerconnection.js.map +1 -1
  19. package/es5/signaling/v2/twilioconnectiontransport.js +2 -7
  20. package/es5/signaling/v2/twilioconnectiontransport.js.map +1 -1
  21. package/es5/util/constants.js +1 -0
  22. package/es5/util/constants.js.map +1 -1
  23. package/es5/util/sdp/index.js +24 -92
  24. package/es5/util/sdp/index.js.map +1 -1
  25. package/es5/util/sdp/issue8329.js +1 -2
  26. package/es5/util/sdp/issue8329.js.map +1 -1
  27. package/es5/util/sdp/simulcast.js +6 -29
  28. package/es5/util/sdp/simulcast.js.map +1 -1
  29. package/es5/util/sdp/{trackmatcher/mid.js → trackmatcher.js} +11 -11
  30. package/es5/util/sdp/trackmatcher.js.map +1 -0
  31. package/lib/connect.js +0 -2
  32. package/lib/createlocaltrack.js +0 -2
  33. package/lib/{createlocaltracks.js → createlocaltracks.ts} +65 -44
  34. package/lib/index.ts +18 -10
  35. package/lib/preflight/getturncredentials.ts +18 -9
  36. package/lib/preflight/preflighttest.ts +110 -74
  37. package/lib/signaling/v2/peerconnection.js +52 -114
  38. package/lib/signaling/v2/twilioconnectiontransport.js +3 -10
  39. package/lib/util/constants.js +1 -0
  40. package/lib/util/sdp/index.js +24 -99
  41. package/lib/util/sdp/issue8329.js +2 -3
  42. package/lib/util/sdp/simulcast.js +7 -31
  43. package/lib/util/sdp/{trackmatcher/mid.js → trackmatcher.js} +6 -6
  44. package/package.json +3 -5
  45. package/tsdef/ConnectOptionsInternal.d.ts +5 -0
  46. package/tsdef/PreflightTypes.d.ts +6 -2
  47. package/tsdef/preflighttest.d.ts +1 -1
  48. package/tsdef/twilio-video-tests.ts +8 -0
  49. package/tsdef/types.d.ts +4 -0
  50. package/es5/util/sdp/trackmatcher/identity.js +0 -25
  51. package/es5/util/sdp/trackmatcher/identity.js.map +0 -1
  52. package/es5/util/sdp/trackmatcher/mid.js.map +0 -1
  53. package/es5/util/sdp/trackmatcher/ordered.js +0 -111
  54. package/es5/util/sdp/trackmatcher/ordered.js.map +0 -1
  55. package/lib/util/sdp/trackmatcher/identity.js +0 -24
  56. package/lib/util/sdp/trackmatcher/ordered.js +0 -120
package/CHANGELOG.md CHANGED
@@ -2,15 +2,62 @@ 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.21.0 (March 8, 2022)
6
+ ==========================
7
+
8
+ New Features
9
+ ------------
10
+ - twilio-video.js now supports WKWebView and SFSafariViewController on iOS version 14.3 or later. The [`isSupported` flag](https://sdk.twilio.com/js/video/releases/2.20.1/docs/module-twilio-video.html) relies partly on the [User-Agent string](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) to determine if twilio-video.js officially supports the user's browser. If your application modifies the default value for the User-Agent string, the new value should follow the [correct format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent#syntax).
11
+
12
+ Additionally, for [iOS applications](https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_ios), your application will need to include the [camera usage description](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/plist/info/NSCameraUsageDescription), [microphone usage description](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW25) and [inline media playback](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614793-allowsinlinemediaplayback) in order for the SDK to work on WKWebView.
13
+
14
+ Note: As with Safari, WKWebViews only support only one local media track of each kind at a time.
15
+
16
+ We also would like to thank @cbxp for his [contribution](https://github.com/twilio/twilio-webrtc.js/pull/133). (VIDEO-8374)
17
+
18
+ Known Issue
19
+ -----------
20
+
21
+ Some [common issues](https://github.com/twilio/twilio-video.js/blob/master/COMMON_ISSUES.md#safari-mobile) such as interruptions on mobile devices which includes, backgrounding the application, or switching between applications can sometimes cause VideoTracks to go black or AudioTracks to stop.
22
+
23
+ 2.20.1 (Feb 17, 2022)
24
+ =====================
25
+ Bug Fixes
26
+ ---------
27
+
28
+ - Fixed a bug that was introduced in 2.19.0 where the published LocalVideoTracks of Participants on older iOS versions 14.5 and below did not encode and transmit media. (VIDEO-8770)
29
+
30
+ 2.20.0 (February 10, 2022)
31
+ ==========================
32
+
33
+ Changes
34
+ -------
35
+
36
+ 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.
37
+
38
+ 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)
39
+
40
+ - 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.
41
+
42
+ - 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.
43
+
44
+ - [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.
45
+
46
+ You can learn more about `runPreflight` usage in the documentation, [here](https://twilio.com/docs/video/troubleshooting/preflight-api).
47
+
48
+ Other changes in this release includes:
49
+
50
+ - 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)
51
+
5
52
  2.19.1 (February 7, 2022)
6
53
  =========================
54
+
7
55
  Bug Fixes
8
56
  ---------
9
57
 
10
58
  - 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
59
  - Fixed a bug where network quality score stops updating after network glitches. (VIDEO-8413)
12
60
 
13
-
14
61
  2.19.0 (January 31, 2022)
15
62
  =========================
16
63
 
package/README.md CHANGED
@@ -21,13 +21,13 @@ View [CHANGELOG.md](https://github.com/twilio/twilio-video.js/blob/master/CHANGE
21
21
  Browser Support
22
22
  ---------------
23
23
 
24
- | | Chrome | Edge (Chromium) | Firefox | Safari |
25
- | ------------|--------|-----------------|---------|--------|
26
- | **Android** | ✓ | - | ✓ | - |
27
- | **iOS** | ✓ | - | * | ✓ |
28
- | **Linux** | ✓ | - | ✓ | - |
29
- | **macOS** | ✓ | ✓ ** | ✓ | ✓ |
30
- | **Windows** | ✓ | ✓ ** | ✓ | - |
24
+ | | Chrome | Edge (Chromium) | Firefox | Safari | WebView |
25
+ | ------------|--------|-----------------|---------|--------|---------|
26
+ | **Android** | ✓ | - | ✓ | - | - |
27
+ | **iOS** | ✓ | - | * | ✓ | ✓ |
28
+ | **Linux** | ✓ | - | ✓ | - | - |
29
+ | **macOS** | ✓ | ✓ ** | ✓ | ✓ | - |
30
+ | **Windows** | ✓ | ✓ ** | ✓ | - | - |
31
31
 
32
32
  \*\* twilio-video.js supports the [Chromium-based Edge](https://www.microsoftedgeinsider.com/) browser.
33
33
 
@@ -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.21.0/twilio-video.min.js"></script>
78
78
 
79
79
  ```
80
80
 
@@ -235,4 +235,3 @@ License
235
235
  -------
236
236
 
237
237
  See [LICENSE.md](https://github.com/twilio/twilio-video.js/blob/master/LICENSE.md).
238
-