public void DidAddStream(Webrtc.RTCPeerConnection peerConnection, Webrtc.RTCMediaStream stream) { // Depreceted. Convert to OnTrack. foreach (var track in stream.VideoTracks) { OnTrack?.Invoke(this, RTCTrackEvent.Create(track)); } foreach (var track in stream.AudioTracks) { OnTrack?.Invoke(this, RTCTrackEvent.Create(track)); } }
private MediaStream(Webrtc.RTCMediaStream nativeMediaStream) : base(nativeMediaStream) { }
public void DidRemoveStream(Webrtc.RTCPeerConnection peerConnection, Webrtc.RTCMediaStream stream) { // Depreceted. }