public IFileVideoCapturer CreateFileCapturer(IVideoSource videoSource, string file) { var fileVideoCapturer = new FileVideoCapturer(file); return(new FileVideoCapturerNative(fileVideoCapturer, _context, videoSource.ToNative <VideoSource>(), EglBaseContext)); }
public IVideoTrack CreateVideoTrack(string id, IVideoSource videoSource) { var videoTrack = _factory.VideoTrackWithSource(videoSource.ToNative <RTCVideoSource>(), id); if (videoTrack == null) { return(null); } return(new VideoTrackNative(videoTrack)); }
public IVideoTrack CreateVideoTrack(string id, IVideoSource videoSource) { var videoTrack = _factory.CreateVideoTrack(id, videoSource.ToNative <VideoSource>()); if (videoTrack == null) { return(null); } return(new VideoTrackNative(videoTrack)); }
public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, RTCCameraDevice cameraDevice) { var cameraEnumerator = _context.GetAllCameras(); var videoCapturer = cameraEnumerator.CreateCapturer(cameraDevice.DeviceId, null); return(videoCapturer == null ? null : new CameraVideoCapturerNative(videoCapturer, _context, videoSource.ToNative <VideoSource>(), EglBaseContext)); }
public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, bool frontCamera) { var capturer = new RTCCameraVideoCapturer(videoSource.ToNative <RTCVideoSource>()); return(new CameraVideoCapturerNative(capturer, frontCamera)); }
public FileVideoCapturer(IVideoSource videoSource) { _capturer = new RTCFileVideoCapturer(videoSource.ToNative <IRTCVideoCapturerDelegate>()); NativeObject = _capturer; }
public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, bool frontCamera) => CreateCameraVideoCapturer(videoSource.ToNative <VideoSource>(), frontCamera);
public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, RTCCameraDevice cameraDevice) { var capturer = new RTCCameraVideoCapturer(videoSource.ToNative <RTCVideoSource>()); return(new CameraVideoCapturerNative(capturer, cameraDevice)); }