Beispiel #1
0
        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));
        }
Beispiel #3
0
        public IVideoTrack VideoTrackWithSource(IVideoSource videoSource, string trackId)
        {
            var videoTrack = _peerConnectionfactory.CreateVideoTrack(trackId, videoSource.ToPlatformNative <VideoSource>());

            if (videoTrack == null)
            {
                return(null);
            }
            return(new PlatformVideoTrack(videoTrack));
        }
Beispiel #4
0
 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));
        }