Delegate DelegateOnTrack
Delegate to be called after a new track has been added to an RTCRtpReceiver which is part of the connection.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public delegate void DelegateOnTrack(RTCTrackEvent e)
Parameters
Type | Name | Description |
---|---|---|
RTCTrackEvent | e |
|
Remarks
This delegate is called after a new track has been added to an RTCRtpReceiver
which is part of the connection.
Examples
MediaStream receiveStream = new MediaStream();
peerConnection.OnTrack = e =>
{
receiveStream.AddTrack(e.Track);
}