public IFileVideoCapturer CreateFileCapturer(IVideoSource videoSource, string file) { var fileVideoCapturer = new FileVideoCapturer(file); return(new PlatformFileVideoCapturer(_context, fileVideoCapturer, videoSource.ToPlatformNative <VideoSource>(), EglBaseContext)); }
public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, bool frontCamera) { var capturer = new RTCCameraVideoCapturer(); capturer.WeakDelegate = videoSource.ToPlatformNative <RTCVideoSource>(); return(new PlatformCameraVideoCapturer(capturer, frontCamera)); }
public IVideoTrack VideoTrackWithSource(IVideoSource videoSource, string trackId) { var videoTrack = _peerConnectionfactory.CreateVideoTrack(trackId, videoSource.ToPlatformNative <VideoSource>()); if (videoTrack == null) { return(null); } return(new PlatformVideoTrack(videoTrack)); }
public Core.Interfaces.ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, bool frontCamera) => CreateCameraVideoCapturer(videoSource.ToPlatformNative <VideoSource>(), frontCamera);
public PlatformFileVideoCapturer(IVideoSource videoSource) { _fileVideoCapturer = new RTCFileVideoCapturer(videoSource.ToPlatformNative <IRTCVideoCapturerDelegate>()); NativeObject = _fileVideoCapturer; }
public IVideoTrack VideoTrackWithSource(IVideoSource videoSource, string trackId) { var videoTrack = _peerConnectionFactory.VideoTrackWithSource(videoSource.ToPlatformNative <RTCVideoSource>(), trackId); return(videoTrack == null ? null : new PlatformVideoTrack(videoTrack)); }