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

CCVideoPlayer: ability to attach under GLView #5

Open
psineur opened this issue Jun 5, 2011 · 4 comments
Open

CCVideoPlayer: ability to attach under GLView #5

psineur opened this issue Jun 5, 2011 · 4 comments

Comments

@psineur
Copy link
Contributor

psineur commented Jun 5, 2011

Subj, there was a discussion on cocos2d forum. Here it is:
http://www.cocos2d-iphone.org/forum/topic/9220

@psineur
Copy link
Contributor Author

psineur commented Feb 20, 2012

Addition: implemented for gles20 branch: http://www.cocos2d-iphone.org/forum/topic/29478

@richardgroves
Copy link

I think the code in http://www.cocos2d-iphone.org/forum/topic/29478 will work on GL-ES1.1 too - it is the older path where

if ([_theMovie respondsToSelector: @selector(view)]) returns NO

that will definitely not work yet. As far as I can tell I don't use anything that is GL2.0 only - that is just the cocos that I work with now, so I can't say it will work on 1.1.

@psineur
Copy link
Contributor Author

psineur commented Feb 20, 2012

Yeah, it's ok with GLES 1.1, but there can be API diffs in cocos2d-iphone 2.x & 1.x
Like this:

    [[CCDirector sharedDirector].view

In 1.x there's no view property in CCDirector, only openGLView

It's pretty easy to support both with some ifdefs

@richardgroves
Copy link

doh! Guess there will be these subtle issues between things as cocos v2 seems to be more than just a move to OpenGL ES2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants