Skip to content

Instantly share code, notes, and snippets.

@Piets
Created Apr 19, 2016
Embed
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