GNOME Bugzilla – Bug 711432
avfvideosrc: support screen capture on OSX
Last modified: 2014-05-04 10:25:51 UTC
This patch add support of screen capture on OSX through the AVFoundation framework.
Created attachment 258949 [details] [review] avfvideosrc: support screen capture on OSX
Review of attachment 258949 [details] [review]: ::: sys/applemedia/avfvideosrc.m @@ +240,3 @@ +#else + AVCaptureScreenInput *screenInput = [[AVCaptureScreenInput alloc] initWithDisplayID:displayId]; + screenInput.capturesCursor = captureScreenCursor; This property does not seems to exists: https://developer.apple.com/library/mac/documentation/AVFoundation/Reference/AVCaptureScreenInput_Class/Reference/Reference.html
(In reply to comment #2) > Review of attachment 258949 [details] [review]: > > ::: sys/applemedia/avfvideosrc.m > @@ +240,3 @@ > +#else > + AVCaptureScreenInput *screenInput = [[AVCaptureScreenInput alloc] > initWithDisplayID:displayId]; > + screenInput.capturesCursor = captureScreenCursor; > > This property does not seems to exists: > https://developer.apple.com/library/mac/documentation/AVFoundation/Reference/AVCaptureScreenInput_Class/Reference/Reference.html It is not referenced in the documentation however it is mentionned in this changelog https://developer.apple.com/library/Mac/releasenotes/General/APIDiffsMacOSX10_8/AVFoundation.html and it does work.
Another undocumented feature :) It's still not available for 10.7, so we also need to cover this scenario
Created attachment 259080 [details] [review] avfvideosrc: support screen capture on OSX
commit 66334591cc29d3526400f9a8473ce9a11ed37d8e Author: Matthieu Bouron <matthieu.bouron@collabora.com> Date: Mon Nov 4 11:14:35 2013 +0000 avfvideosrc: support screen capture on OSX https://bugzilla.gnome.org/show_bug.cgi?id=711432