twilio-video 2.29.0 → 2.30.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 (55) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -1
  3. package/dist/twilio-video.js +633 -50
  4. package/dist/twilio-video.min.js +22 -21
  5. package/es5/connect.js +16 -8
  6. package/es5/connect.js.map +1 -1
  7. package/es5/createlocaltrack.js +8 -0
  8. package/es5/createlocaltrack.js.map +1 -1
  9. package/es5/media/track/localaudiotrack.js +8 -3
  10. package/es5/media/track/localaudiotrack.js.map +1 -1
  11. package/es5/media/track/localmediatrack.js +20 -6
  12. package/es5/media/track/localmediatrack.js.map +1 -1
  13. package/es5/media/track/localvideotrack.js +18 -3
  14. package/es5/media/track/localvideotrack.js.map +1 -1
  15. package/es5/media/track/mediatrack.js +36 -6
  16. package/es5/media/track/mediatrack.js.map +1 -1
  17. package/es5/media/track/remoteaudiotrack.js +6 -1
  18. package/es5/media/track/remoteaudiotrack.js.map +1 -1
  19. package/es5/media/track/sender.js +8 -1
  20. package/es5/media/track/sender.js.map +1 -1
  21. package/es5/media/track/videotrack.js +6 -1
  22. package/es5/media/track/videotrack.js.map +1 -1
  23. package/es5/participant.js +14 -2
  24. package/es5/participant.js.map +1 -1
  25. package/es5/room.js +2 -2
  26. package/es5/room.js.map +1 -1
  27. package/es5/signaling/v2/iceconnectionmonitor.js +12 -2
  28. package/es5/signaling/v2/iceconnectionmonitor.js.map +1 -1
  29. package/es5/signaling/v2/peerconnection.js +22 -4
  30. package/es5/signaling/v2/peerconnection.js.map +1 -1
  31. package/es5/util/index.js +11 -0
  32. package/es5/util/index.js.map +1 -1
  33. package/es5/webrtc/getstats.js +442 -8
  34. package/es5/webrtc/getstats.js.map +1 -1
  35. package/lib/connect.js +16 -8
  36. package/lib/createlocaltrack.js +9 -0
  37. package/lib/createlocaltracks.ts +5 -0
  38. package/lib/index.ts +1 -1
  39. package/lib/media/track/localaudiotrack.js +8 -3
  40. package/lib/media/track/localmediatrack.js +18 -6
  41. package/lib/media/track/localvideotrack.js +15 -3
  42. package/lib/media/track/mediatrack.js +36 -6
  43. package/lib/media/track/remoteaudiotrack.js +5 -1
  44. package/lib/media/track/sender.js +7 -1
  45. package/lib/media/track/videotrack.js +5 -1
  46. package/lib/participant.js +14 -2
  47. package/lib/room.js +2 -2
  48. package/lib/signaling/v2/iceconnectionmonitor.js +10 -2
  49. package/lib/signaling/v2/peerconnection.js +24 -5
  50. package/lib/util/index.js +12 -0
  51. package/lib/webrtc/getstats.js +306 -11
  52. package/package.json +3 -2
  53. package/tsdef/VideoProcessor.d.ts +3 -7
  54. package/tsdef/twilio-video-tests.ts +72 -0
  55. package/tsdef/types.d.ts +19 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@ 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.30.0 (March 28, 2025)
6
+ ========================
7
+
8
+ New Features
9
+ ------------
10
+
11
+ ### WebRTC Overrides (Beta)
12
+
13
+ The SDK now enables you to override WebRTC APIs with the following options. If your environment supports WebRTC redirection—such as [Citrix HDX](https://www.citrix.com/solutions/hdx.html)'s WebRTC [redirection technologies](https://www.citrix.com/blogs/2019/01/15/hdx-a-webrtc-manifesto/)—your application can leverage this new beta feature to enhance media quality in those environments. For more details, please refer to the [JavaScript WebRTC Overrides](https://www.twilio.com/docs/video/javascript-webrtc-overrides) documentation.
14
+
15
+ **ConnectOptions**
16
+
17
+ - `rtcConfiguration` - An optional `RTCConfiguration` object passed to the RTCPeerConnection constructor.
18
+ - `RTCPeerConnection` - Allows overriding the native `RTCPeerConnection` class.
19
+
20
+ **ConnectOptions and CreateLocalTracksOptions**
21
+
22
+ - `getUserMedia` - Overrides the native `MediaDevices.getUserMedia` API.
23
+ - `enumerateDevices` - Overrides the native `MediaDevices.enumerateDevices` API.
24
+ - `MediaStream` - Overrides the native `MediaStream` class.
25
+ - `mapMediaElement` - Callback triggered after a media track is attached to an audio or video element.
26
+ - `disposeMediaElement` - Callback triggered after a media track is detached from an audio or video element.
27
+
28
+ Bug Fixes
29
+ ---------
30
+
31
+ - Fixed a bug where a Chrome iOS Participant's local audio (Krips Noise Cancellation enabled) did not recover after disconnecting a bluetooth headset. (VIDEO-13010)
32
+
5
33
  2.29.0 (December 5, 2024)
6
34
  ================================
7
35
 
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.29.0/twilio-video.min.js"></script>
77
+ <script src="//sdk.twilio.com/js/video/releases/2.30.0/twilio-video.min.js"></script>
78
78
  ```
79
79
 
80
80
  Using this method, twilio-video.js will set a browser global: