GNOME Bugzilla – Bug 778333
Applemedia/AVFVideoSource: Add support for position, device type, and device orientation
Last modified: 2017-03-08 13:24:17 UTC
At the moment, the avfvideosrc only takes a device-index to identify which camera. There is a better api that allows you to specify front and rear facing camera, wide angle vs telephoto, etc. Additionally, setting the orientation is useful.
Created attachment 345187 [details] [review] Proposed implementation
Depends on bug 777847
Review of attachment 345187 [details] [review]: Looks good to me, but depends on the ARC patch. Ideally this should get a GstDeviceMonitor implementation so that the application can know what options are available with a generic API.
commit 0968bad8a4bf0681e61c48afbd7962a3a8c9a3cd Author: Nick Kallen <nickkallen@me.com> Date: Wed Feb 8 12:23:09 2017 +0100 applemedia: avfvideosrc supports position, device-type, and orientation Avfvideosrc represents an iphone camera or, on mac, a screencapture session. The old API allowed you to select an input device by device index only. The new API adds the ability to select the position (front or back facing) and device-type (wide angle, telephoto, etc.). Furthermore, you can now specify the orientation (portrait, landscape, etc.) of the videostream. https://bugzilla.gnome.org/show_bug.cgi?id=778333
Created attachment 347483 [details] [review] Compile issues on OSX with previous patch
commit 82c132aa508d5acfa038b509bd6a7f7963118c5f Author: Nick Kallen <nickkallen@me.com> Date: Wed Mar 8 14:16:43 2017 +0100 applemedia/gl: Fix compile issues for OSX https://bugzilla.gnome.org/show_bug.cgi?id=778333