com.unity.webrtc 2.3.0-preview
Notes: processedReleased December 25, 2020
Unity Compatibility
Minimum Unity: 2019.4
Package Dependencies
- com.unity.editorcoroutines (1.0.0)
- com.unity.modules.jsonserialize (1.0.0)
✨ Features
- Supported iOS platform
- Supported H.264 HW decoder (VideoToolbox) on macOS
- Added `GetCapabilities` method to the `RTCRtpSender` class and the `RTCRtpReceiver` class
- Added `SetCodecPreferences` method to the `RTCRtpTransceiver` class
- Added two samples ("ChangeCodecs", "TrickleIce")
- Added properties to the `RTCIceCandidate` class
- Added properties tp the `RTCDataChannelInit` class
📈 Improvements
- Changed `RTCIceCandidate` type from `struct` to `class`
- Changed `RTCIceCandidateInit` type from `struct` to `class`
- Changed `RTCDataChannelInit` type from `struct` to `class`
- Changed argumments of the `RTCPeerConnection.AddIceCandidate` method
- ```
- // old
- public void AddIceCandidate(ref RTCIceCandidate candidate);
- // new
- public bool AddIceCandidate(RTCIceCandidate candidate);
- ```
- Changed arguments of the `RTCPeerConnection.CreateDataChannel` method
- ```
- // old
- public RTCDataChannel CreateDataChannel(string label, ref RTCDataChannelInit options);
- // new
- public RTCDataChannel CreateDataChannel(string label RTCDataChannelInit options = null);
- ```
