Skip to content

Instantly share code, notes, and snippets.

Piets /
Last active Nov 21, 2018

Keybase proof

I hereby claim:

  • I am piets on github.
  • I am piets ( on keybase.
  • I have a public key ASBMoMc3YWD_7ZJFxZbdgJqxseDH24jGcHWxCxynWKjCNAo

To claim this, I am signing this object:

Piets / enable.m
Created Apr 19, 2016
Enable ScreenCaptureDevices in AVFoundation
View enable.m
//Allow ScreenCaptureDevices (iOS Devices connected via Lightning cable)
CMIOObjectPropertyAddress prop = {kCMIOHardwarePropertyAllowScreenCaptureDevices, kCMIOObjectPropertyScopeGlobal, kCMIOObjectPropertyElementMaster};
UInt32 allow = 1;
CMIOObjectSetPropertyData(kCMIOObjectSystemObject, &prop, 0, NULL, sizeof(allow), &allow);