public void OnRemoveStream(MediaStream stream) { outerInstance.RunOnUiThread(() => stream.VideoTracks.Get(0).Dispose()); }
public void OnAddStream(MediaStream stream) { outerInstance.RunOnUiThread(() => { abortUnless(stream.AudioTracks.Size() <= 1 && stream.VideoTracks.Size() <= 1, "Weird-looking stream: " + stream); if (stream.VideoTracks.Size() == 1) { ((Org.Webrtc.VideoTrack)stream.VideoTracks.Get(0)).AddRenderer(new VideoRenderer(new VideoCallbacks(outerInstance, outerInstance.vsv, VideoStreamsView.Endpoint.REMOTE))); } }); }
public void OnRemoveStream(Webrtc.MediaStream p0) { // Depreceted. }
public void OnAddStream(Webrtc.MediaStream p0) { // Depreceted. Convert to OnTrack. }
private MediaStream(Webrtc.MediaStream nativeMediaStream) : base(nativeMediaStream) { }
public static IMediaStream Create(Webrtc.MediaStream nativeMediaStream) => new MediaStream(nativeMediaStream);