GNOME Bugzilla – Bug 752867
avfvideosrc: external session
Last modified: 2018-11-03 13:38:58 UTC
I've implemented a 'session' property which allows both: - getting the internal AVCaptureSession used by avfvideosrc - giving avfvideosrc an external (already inited) AVCaptureSession; in such case, it avoids configuration, startRunning and stopRunning, assuming it'll be done externally See my commit (which I'm dogfooding on iOS and OS X for the past 2 months): https://github.com/ikonst/gst-plugins-bad/commit/dfd399ae3c33756434ff5708d73b5585b71cc79c It's useful for attaching additional AVCaptureOutputs to the session, externally to GStreamer. One thing it's essential for, is to use AVCaptureVideoPreviewLayer, which is a high performance video primitive on OS X and iOS which can display a preview of the video input. It's a standard UI element, whose composition is performed by the system (out of process) and has better performance than any other option. An alternative to support AVVideoCapturePreviewLayer specifically, which could be also nice, is to add a "preview-layer" property, accepting an AVVideoCapturePreviewLayer whose 'session' property will be set once we initialize the session.
@Robert - I don't think any RTC solution on iOS will be complete without this :)
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/286.