com.unity.webrtc 2.3.0-preview

com.unity.webrtc

Notes: processedReleased December 25, 2020

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2019.4

Package Dependencies

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);
  • ```