Skip to content

Instantly share code, notes, and snippets.

Created Apr 19, 2016
What would you like to do?
Enable ScreenCaptureDevices in AVFoundation
//Allow ScreenCaptureDevices (iOS Devices connected via Lightning cable)
CMIOObjectPropertyAddress prop = {kCMIOHardwarePropertyAllowScreenCaptureDevices, kCMIOObjectPropertyScopeGlobal, kCMIOObjectPropertyElementMaster};
UInt32 allow = 1;
CMIOObjectSetPropertyData(kCMIOObjectSystemObject, &prop, 0, NULL, sizeof(allow), &allow);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment