cocos2d-x play video question

Victor Komarov wrote:

Please let me know if everything works as it should or if there are any problems

It looks like it works OK. Thank you again.

CQVideoPlayer::sharedVideoPlayer()->playVideo(videoName, videoExtension)
what “videoExtension” mean?
“videoName” is resource’s full path?

Victor Komarov wrote:

Please let me know if everything works as it should or if there are any problems

videoName is just the name of the file, full path will be determined inside the method. Let’s assume you want to play a file called video.mpg, corresponding call will look like

CQVideoPlayer::sharedVideoPlayer()->playVideo("video", "mpg");

oh thank you i have get it.
but now, i have a new problem: when i touch video screen, and the video will stop, but i want control by ios’ button, i have set button show, but i can’t control by it,
what can i do??

Victor Komarov wrote:

videoName is just the name of the file, full path will be determined inside the method. Let’s assume you want to play a file called video.mpg, corresponding call will look like
[…]

Take a look at CQVideoPlayerHelper. What you want is to call m_VideoPlayer->stopVideo() when your button is touched. here m_VideoPlater is an instance of CQVideoPlayer.