Skip to content

Instantly share code, notes, and snippets.

@Piets
Piets / keybase.md
Last active Nov 21, 2018
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am piets on github.
  • I am piets (https://keybase.io/piets) on keybase.
  • I have a public key ASBMoMc3YWD_7ZJFxZbdgJqxseDH24jGcHWxCxynWKjCNAo

To claim this, I am signing this object:

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