COCOS2DX 3.3 iOS play video after the black screen

Source: Internet
Author: User

To tell the truth really do not like to write blog, one is poor writing, expression ability is not strong, second, because of lazy, hope to develop the habit of blogging, so that it is convenient to consult later, but also can help the people who meet the same problem.

No nonsense, say the matter.

3.3 After the video is played, switch to the game scene appears

OpenGL error 0x0506 in-[cceaglview swapbuffers] 324

Solution: Add the following two functions to the class Rootviewcontroller

-(void) Viewdidappear: (BOOL) animated{    cocos2d::D irector::getinstance ()->resume ();    Cocos2d::D irector::getinstance ()->startanimation ();} -(void) Viewwilldisappear: (BOOL) animated{    cocos2d::D irector::getinstance ()->pause ();    Cocos2d::D irector::getinstance ()->stopanimation ();}

COCOS2DX 3.3 iOS play video after the black screen

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.