jhgorse / onevideo

Connected Collaboration: Peer-to-peer video conferencing
GNU Lesser General Public License v2.1
4 stars 0 forks source link

expose connected iOS devices as cameras in avfvideosrc gst-plugins-bad #6

Open jhgorse opened 8 years ago

jhgorse commented 8 years ago

iOS devices are presented as CoreMedia IO “DAL” plug-ins You must opt in to see iOS screen devices in your OS X app

CMIOObjectPropertyAddress prop = 
{ kCMIOHardwarePropertyAllowScreenCaptureDevices,  
kCMIOObjectPropertyScopeGlobal,   kCMIOObjectPropertyElementMaster }; 
UInt32 allow = 1; 
CMIOObjectSetPropertyData( kCMIOObjectSystemObject,  
&prop, 0, NULL,  sizeof(allow), &allow );

From Brad Ford's 2014 WWDC session 508: https://developer.apple.com/videos/play/wwdc2014-508/