10-22-2012 10:51 AM
I did the sanity check! And its confirmed that the video is playing, I put a video with sound... The sound goes on smoothly but I see a dark screen, which version of cocos2d-x are you using???
I'm using 2.0.3;
I'm checking further in the problem...
10-22-2012 11:25 AM
I'm using 2.0.2, it shouldn't make too much difference. The dark screen is usually caused by the default drawing routing of cocos2d-x, that's why I override the draw() function, to clear the screen so the video can appear behind.
10-22-2012 01:10 PM
I did an ultimate test, using cocos2d-x-2.0.2, sample video, and your code pure and simple in a new project...
It didn't work...
Are you sure you have not performed another modifications you didn't post here? I'm almost giving up the idea...
Is there a way to put the renderer above opengl window?
10-23-2012 08:48 AM
I'm pretty sure I haven't added other modifications.
One thing, though: I had problems playing the video as the first scene (e.g. creating it directly from AppDelegate). I had to create a blank scene first whose only job is to replace the current scene in the director with the video scene. This is probably because the OpenGL initialization calls have not been made by the time the AppDelegate is creating the first scene.
Make sure that the video scene is not being created directly from the AppDelegate, but rather after another first scene.
Don't give up, you're very close to making it (I also had serious problems to play video on the Playbook, so I understand you completely)
03-22-2013 11:36 PM
I know that this question has been posted since a long time ago, but I think that posting an answer will help someone else facing this same problem.
I was able to fix the issue by modifing the value of the screen transparency when configuring the window in the CCEGLView::initGL() function
Change the value of
int screenTransparency = SCREEN_TRANSPARENCY_NONE;
int screenTransparency = SCREEN_TRANSPARENCY_SOURCE_OVER;
and after that compile and run your game and youll be able to watch the video on screen.