public VideoCapturerNative(Org.Webrtc.IVideoCapturer videoCapturer, Context context, VideoSource videoSource, IEglBaseContext eglBaseContext) : base(videoCapturer) { _videoCapturer = videoCapturer; _surfaceTextureHelper = SurfaceTextureHelper.Create("CaptureThread", eglBaseContext); videoCapturer.Initialize(_surfaceTextureHelper, context, videoSource.CapturerObserver); }
private static PeerConnectionFactory CreateNativeFactory(Context context, IEglBaseContext eglBaseContext) { var adm = CreateJavaAudioDevice(context); var encoderFactory = new DefaultVideoEncoderFactory(eglBaseContext, true, true); var decoderFactory = new DefaultVideoDecoderFactory(eglBaseContext); var factory = PeerConnectionFactory.InvokeBuilder() .SetAudioDeviceModule(adm) .SetVideoEncoderFactory(encoderFactory) .SetVideoDecoderFactory(decoderFactory) .CreatePeerConnectionFactory(); adm.Release(); return(factory); }
public PlatformFileVideoCapturer(Context context, FileVideoCapturer fileVideoCapturer, VideoSource videoSource, IEglBaseContext eglBaseContext) : base(context, videoSource, fileVideoCapturer, eglBaseContext) => _fileVideoCapturer = fileVideoCapturer;
public FileVideoCapturerNative(FileVideoCapturer fileVideoCapturer, Context context, VideoSource videoSource, IEglBaseContext eglBaseContext) : base(fileVideoCapturer, context, videoSource, eglBaseContext) { _fileVideoCapturer = fileVideoCapturer; }
public PlatformVideoCapturer(Context context, VideoSource videoSource, IVideoCapturer videoCapturer, IEglBaseContext eglBaseContext) : base(videoCapturer) { _videoCapturer = videoCapturer; _surfaceTextureHelper = SurfaceTextureHelper.Create("VIDEO CAPTURE THREAD", eglBaseContext); _videoCapturer.Initialize(_surfaceTextureHelper, context, videoSource.CapturerObserver); }
public PlatformCameraVideoCapturer(Context context, ICameraVideoCapturer cameraVideoCapturer, VideoSource videoSource, IEglBaseContext eglBaseContext) : base(context, videoSource, cameraVideoCapturer, eglBaseContext) => _cameraVideoCapturer = cameraVideoCapturer;
public CameraVideoCapturerNative(ICameraVideoCapturer videoCapturer, Context context, VideoSource videoSource, IEglBaseContext eglBaseContext) : base(videoCapturer, context, videoSource, eglBaseContext) { _videoCapturer = videoCapturer; }