Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS-VideoGrabber Fixes #2947

Merged
merged 2 commits into from Jun 18, 2014
Merged

Conversation

danoli3
Copy link
Member

@danoli3 danoli3 commented Apr 24, 2014

-Fixes for iOS revisions less than 7.
-Now builds against SDK levels lower than 7

Fixes problems found by @luisgarrido
See #2832 for more info.

-Fixes for iOS revisions less than 7.
-Now builds against SDK levels lower than 7
@@ -13,6 +13,9 @@

#if defined __arm__

#define IS_IOS_7_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
#define IS_IOS_6_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those preprocessor defines should go in addons/ofxiOS/src/utils/ofxiOSExtras.h, where all the others are.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AVFoundationVideoGrabber and AVFoundationVideoPlayer should both be OF independent.
AVFoundationVideoGrabber currently is not, but it will be in the future.
currently we have those sort of check all throughout ofxiOS and it definitely needs to be merged into the one place.
ofxiOSExtras is probably the best place for it but currently its a mess and includes every other class in ofxiOS.
i think for now this solution is ok and in the future we can address the ofxiOSExtras issue.

ofTheo added a commit that referenced this pull request Jun 18, 2014
@ofTheo ofTheo merged commit 9ea46eb into openframeworks:master Jun 18, 2014
@danoli3 danoli3 deleted the iOS-VideoGrabber-Fixes2 branch June 23, 2014 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants