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)));
                    }

                 				});
            }
示例#3
0
 public void OnRemoveStream(Webrtc.MediaStream p0)
 {
     // Depreceted.
 }
示例#4
0
 public void OnAddStream(Webrtc.MediaStream p0)
 {
     // Depreceted. Convert to OnTrack.
 }
示例#5
0
 private MediaStream(Webrtc.MediaStream nativeMediaStream) : base(nativeMediaStream)
 {
 }
示例#6
0
 public static IMediaStream Create(Webrtc.MediaStream nativeMediaStream) => new MediaStream(nativeMediaStream);