@554059868 写道:
include "L1_U1_TestPlay.h"
include "cocos2d\cocos\ui\UIVideoPlayer.h"
include "cocos2d\cocos\ui\CocosGUI.h"USING_NS_CC;
Size size = Director::getInstance()->getWinSize(); auto videoPlayer = experimental::ui::VideoPlayer::create(); videoPlayer->setPosition(Point(size.width / 2, size.height / 2)); videoPlayer->setContentSize(Size(size.width, size.height)); this->addChild(videoPlayer); if (videoPlayer) { videoPlayer->setFileName("kenan001.mp4"); videoPlayer->play(); }
使用这个播放视频的时候,总是提示 experimental下在没有ui这个名称空间,请问一下,这个是什么原因呢?
帖子: 3
参与者: 1