public IFileVideoCapturer CreateFileCapturer(IVideoSource videoSource, string file)
        {
            var fileVideoCapturer = new FileVideoCapturer(file);

            return(new FileVideoCapturerNative(fileVideoCapturer, _context, videoSource.ToNative <VideoSource>(),
                                               EglBaseContext));
        }
コード例 #2
0
        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));
        }
コード例 #4
0
        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));
        }
コード例 #5
0
        public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, bool frontCamera)
        {
            var capturer = new RTCCameraVideoCapturer(videoSource.ToNative <RTCVideoSource>());

            return(new CameraVideoCapturerNative(capturer, frontCamera));
        }
コード例 #6
0
 public FileVideoCapturer(IVideoSource videoSource)
 {
     _capturer    = new RTCFileVideoCapturer(videoSource.ToNative <IRTCVideoCapturerDelegate>());
     NativeObject = _capturer;
 }
 public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, bool frontCamera) =>
 CreateCameraVideoCapturer(videoSource.ToNative <VideoSource>(), frontCamera);
コード例 #8
0
        public ICameraVideoCapturer CreateCameraCapturer(IVideoSource videoSource, RTCCameraDevice cameraDevice)
        {
            var capturer = new RTCCameraVideoCapturer(videoSource.ToNative <RTCVideoSource>());

            return(new CameraVideoCapturerNative(capturer, cameraDevice));
        }