All notable changes to the webrtc package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
AudioStreamTrack
constructor to set AudioListener
.WebRTC.Initialize
method to not throw exception when using OpenGL Core on Windows or macOS.SetRemoteDescription
and SetLocalDescription
method of RTCPeerConnection
class to work correct when calling multiple at the same time.Resources
folder.VideoStraamTrack.CaptureStreamTrack
method.GetStats
method multiple times at the same time.RTCRtpSender.ReplaceTrack
method.RTCPeerConnection.AddTransceiver
method to pass initial information of RTCRtpTransceiver
when instanting it.EncoderType
for WebRTC.Initialize
method.WebRTC.HardwareEncoderSupport
method.AudioStreamTrack
on a receiver side.NativeArray<T>
, NativeSlice<T>
and NativeArray<T>.ReadOnly
) to RTCDataChannel
.RTCRtpTransceiver.Mid
.enableNativeLog
for WebRTC.Initialize
method.AudioStreamTrack
class.OnAudioFilterRead
method in MonoBehaviour
for audio rendering.scaleResolutionDownBy
in RTCRtpEncodingParameters
class.ObjectDisposedException
when accessing instance after call Dispose method.RTCAudioSourceStats
and VideoSourceStats
classWebRTC.Initialize
twiceUnity2021.2
RTCRtpSender.Track
RestartIce
method to the RTCPeerConnection
classStreams
property to the RTCRtpReceiver
classRTCPeerConnection.CreateOffer
method and the RTCPeerConnection.CreateAnswer
methodRTCDataChannel
instanceOnConnectionStateChange
event to the RTCPeerConnection
classMediaStreamTrack
properties after disposing of RTCPeerConnection
Audio.CaptureStream
method to allow setting of audio track label.MediaStream.GetVideoStreamTrack
method and MediaStream.GetVideoStreamTrack
method to return a correct value.RTCRtpTransceiver.Receiver
property and RTCRtpTransceiver.Sender
property to return a correct value.RTCIceCandidate.candidate
property in order to return a correct SDP formatted string.GetCapabilities
method to the RTCRtpSender
class and the RTCRtpReceiver
classSetCodecPreferences
method to the RTCRtpTransceiver
classRTCIceCandidate
classRTCDataChannelInit
classRTCIceCandidate
type from struct
to class
RTCIceCandidateInit
type from struct
to class
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);
RTCPeerConnection
behaviour to throw exceptions when pass invalid arguments to SetLocalDescription
, SetRemoteDescription
RTCRtpEncodingParameters
class.RTCRtpSender.SetParameters
API did not work properlyRTCPeerConnection.GetStats
API which collect statistics of WebRTCRTCRtpSender.SetParameters
and RTCRtpSender.GetParameters
to adjustment streaming video qualityRTCDataChannel.ReadyState
which shows the state of the channelRTCDataChannel
constructorAudio.Update
method to public