How do I set up a mirroring session between iOS 8 and Yosemite?

百般思念 提交于 2019-11-28 09:32:16
NadavRub

Quoting from p28 of the PDF transcript for WWDC 2014 session #508 “Camera Capture: Manual Controls”:

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 );

Also, see my blog for CoreMediaIO capture sample to directly intercept the raw compressed payload sent out from the device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!