Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

cocos2d-x win32 平台 编译时提示 “ui”: 不是“cocos2d::experimental”的成员

$
0
0

@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

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>