Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
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.