• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ playVideo函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中playVideo函数的典型用法代码示例。如果您正苦于以下问题:C++ playVideo函数的具体用法?C++ playVideo怎么用?C++ playVideo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了playVideo函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: playVideo

void NWNEngine::playIntroVideos() {
	playVideo("atarilogo");
	playVideo("biowarelogo");
	playVideo("wotclogo");
	playVideo("fge_logo_black");
	playVideo("nwnintro");
}
开发者ID:cc9cii,项目名称:xoreos,代码行数:7,代码来源:nwn.cpp


示例2: playVideo

void WitcherEngine::playIntroVideos() {
	playVideo("publisher");
	playVideo("developer");
	playVideo("engine");
	playVideo("intro");
	playVideo("title");
}
开发者ID:Supermanu,项目名称:xoreos,代码行数:7,代码来源:witcher.cpp


示例3: sub

void MoviesCampMenu::callbackActive(Widget &widget) {
	if (widget.getTag() == "CancelButton") {
		_returnCode = 1;
		return;
	}

	if (widget.getTag() == "NWNButton") {
		sub(*_base);
		return;
	}

	if        (widget.getTag() == "NWNXP1Button") {
		// No GUI file? Harcoded?

		// Just play them one after another for now...
		playVideo("xp1_intro");
		playVideo("xp1_chap1_chap2");
		playVideo("xp1_chap2_chap3");
		playVideo("xp1_closing");
	} else if (widget.getTag() == "NWNXP2Button") {
		// No GUI file? Harcoded?

		// Just play the intro for now...
		// (Which is the only actual video anyway, the rest is in-game cinematics)
		playVideo("xp2_intro");
	}

	updateMouse();
}
开发者ID:gitter-badger,项目名称:xoreos,代码行数:29,代码来源:moviescamp.cpp


示例4: playVideo

void JadeEngine::playIntroVideos() {
	playVideo("black");
	playVideo("publisher");
	playVideo("bwlogo");
	playVideo("graymatr");
	playVideo("attract");
}
开发者ID:Glyth,项目名称:xoreos,代码行数:7,代码来源:jade.cpp


示例5: connect

void WenliBackWidget::initConnect()
{
    connect(m_groupButton, SIGNAL(playVideo()), this, SIGNAL(playVideo()));
    connect(m_groupButton, SIGNAL(showSkin()), this, SIGNAL(showSkin()));
    connect(m_groupButton, SIGNAL(showMenu()), this, SIGNAL(showMenu()));
    connect(m_groupButton, SIGNAL(showMin()), this, SIGNAL(showMin()));
    connect(m_groupButton, SIGNAL(closeWidget()), this, SIGNAL(closeWidget()));
    connect(m_button, SIGNAL(buttonClicked()), this, SIGNAL(buttonClicked()));
}
开发者ID:GLDsuh-a,项目名称:qt-1,代码行数:9,代码来源:wenlibackwidget.cpp


示例6: playVideo

void Functions::endGame(Aurora::NWScript::FunctionContext &ctx) {
	_game->getModule().exit();

	const Common::UString video = ctx.getParams()[0].getString();
	if (!video.empty())
		playVideo(video);

	playVideo("credits");
}
开发者ID:Supermanu,项目名称:xoreos,代码行数:9,代码来源:functions_module.cpp


示例7: playVideo

void SonicEngine::playIntroVideos() {
	// Play the two logo videos
	playVideo("bioware");
	playVideo("sega");

	// TODO: We need to support playing two videos at once. The two logo videos
	// are both on the bottom screen, but (most) other videos have a top screen
	// and bottom screen video.
}
开发者ID:DeejStar,项目名称:xoreos,代码行数:9,代码来源:sonic.cpp


示例8: playVideo

void MoviesBaseMenu::callbackActive(Widget &widget) {
	if (widget.getTag() == "CloseButton") {
		_returnCode = 1;
		return;
	}

	if      (widget.getTag() == "PreludeButton")
		playVideo("prelude");
	else if (widget.getTag() == "IntroButton")
		playVideo("prelude");
	else if (widget.getTag() == "Chpt1Button")
		playVideo("prelude_chap1");
	else if (widget.getTag() == "Chpt2Button")
		playVideo("chap1_chap2");
	else if (widget.getTag() == "Chpt3Button")
		playVideo("chap2_chap3");
	else if (widget.getTag() == "Chpt4Button")
		playVideo("chap3_chap4");
	else if (widget.getTag() == "EndButton")
		playVideo("ending");
	else if (widget.getTag() == "CreditsButton")
		playVideo("credits");

	updateMouse();
}
开发者ID:Supermanu,项目名称:xoreos,代码行数:25,代码来源:moviesbase.cpp


示例9: playVideo

void KotOREngine::playIntroVideos() {
	if (_platform == Aurora::kPlatformXbox) {
		playVideo("logo");
		// TODO: What the hell is (sizzle|sizzle2).xmv?
	} else {
		playVideo("leclogo");
		playVideo("biologo");

		// On Mac OS X, play the Aspyr logo
		if (_platform == Aurora::kPlatformMacOSX)
			playVideo("Aspyr_BlueDust_intro");

		playVideo("legal");
	}
}
开发者ID:jjardon,项目名称:eos,代码行数:15,代码来源:kotor.cpp


示例10: Dialog

YouTubePlaybackDialog::YouTubePlaybackDialog(const QString &resourceId, const QString &title, QWidget *parent) :
    Dialog(parent),
    m_id(resourceId),
    m_title(title),
    m_model(new YouTubeStreamModel(this)),
    m_streamSelector(new ValueSelector(tr("Video format"), this)),
    m_buttonBox(new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Vertical, this)),
    m_layout(new QHBoxLayout(this))
{
    setWindowTitle(tr("Play video"));
    
    m_streamSelector->setModel(m_model);
    
    m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
    
    m_layout->addWidget(m_streamSelector, Qt::AlignBottom);
    m_layout->addWidget(m_buttonBox, Qt::AlignBottom);
    m_layout->setStretch(0, 1);
    
    connect(m_model, SIGNAL(statusChanged(QYouTube::StreamsRequest::Status)), this,
            SLOT(onModelStatusChanged(QYouTube::StreamsRequest::Status)));
    connect(m_streamSelector, SIGNAL(valueChanged(QVariant)), this, SLOT(onStreamChanged()));
    connect(m_buttonBox, SIGNAL(accepted()), this, SLOT(playVideo()));
    connect(m_buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
}
开发者ID:freemangordon,项目名称:cutetube2,代码行数:25,代码来源:youtubeplaybackdialog.cpp


示例11: cleanupAbandoned

void GraphicsManager::renderScene() {
	Common::enforceMainThread();

	cleanupAbandoned();

	if (_frameLock.load(boost::memory_order_acquire) > 0) {
		_frameEndSignal.store(true, boost::memory_order_release);

		return;
	}

	beginScene();

	if (playVideo()) {
		endScene();
		return;
	}

	renderGUIBack();
	renderWorld();
	renderGUIFront();
	renderCursor();

	endScene();

	_frameEndSignal.store(true, boost::memory_order_release);
}
开发者ID:strand,项目名称:xoreos,代码行数:27,代码来源:graphics.cpp


示例12: loadTexturePack

void Module::enter() {
	if (!_hasModule)
		throw Common::Exception("Module::enter(): Lacking a module?!?");

	if (!_pc)
		throw Common::Exception("Module::enter(): Lacking a PC?!?");

	_pc->clearVariables();

	loadTexturePack();

	_console->printf("Entering module \"%s\" with character \"%s\"",
			_ifo.getName().getString().c_str(), _pc->getName().c_str());

	_ingameGUI->updatePartyMember(0, *_pc);

	try {

		loadTLK();
		loadHAKs();
		loadAreas();

	} catch (Common::Exception &e) {
		e.add("Can't initialize module \"%s\"", _ifo.getName().getString().c_str());
		throw e;
	}

	float entryX, entryY, entryZ, entryDirX, entryDirY;
	_ifo.getEntryPosition(entryX, entryY, entryZ);
	_ifo.getEntryDirection(entryDirX, entryDirY);

	const float entryAngle = -Common::rad2deg(atan2(entryDirX, entryDirY));

	_pc->setPosition(entryX, entryY, entryZ);
	_pc->setOrientation(0.0f, 0.0f, 1.0f, entryAngle);

	_pc->loadModel();

	runScript(kScriptModuleLoad , this, _pc);
	runScript(kScriptModuleStart, this, _pc);
	runScript(kScriptEnter      , this, _pc);

	Common::UString startMovie = _ifo.getStartMovie();
	if (!startMovie.empty())
		playVideo(startMovie);

	_newArea = _ifo.getEntryArea();

	CameraMan.reset();

	// Roughly head position
	CameraMan.setPosition(entryX, entryY, entryZ + 1.8f);
	CameraMan.setOrientation(90.0f, 0.0f, entryAngle);
	CameraMan.update();

	_running = true;
	_exit    = false;

	_ingameGUI->show();
}
开发者ID:jbowtie,项目名称:xoreos,代码行数:60,代码来源:module.cpp


示例13: QWidget

SysButtonGroup::SysButtonGroup(QWidget *parent)
    : QWidget(parent)
{
    QHBoxLayout *hLayout = new QHBoxLayout;
    StaticButton *playButton = new StaticButton(":/main/playvideo");
    connect(playButton, SIGNAL(buttonClicked()), this, SIGNAL(playVideo()));

    StaticButton *skinButton = new StaticButton(":/main/skin");
    connect(skinButton, SIGNAL(buttonClicked()), this, SIGNAL(showSkin()));

    StaticButton *menuButton = new StaticButton(":/main/menu");
    connect(menuButton, SIGNAL(buttonClicked()), this, SIGNAL(showMenu()));

    StaticButton *minButton = new StaticButton(":/main/sys_min");
    connect(minButton, SIGNAL(buttonClicked()), this, SIGNAL(showMin()));

    StaticButton *closeButton = new StaticButton(":/main/sys_close");
    connect(closeButton, SIGNAL(buttonClicked()), this, SIGNAL(closeWidget()));

    hLayout->addWidget(playButton);
    hLayout->addWidget(skinButton);
    hLayout->addWidget(menuButton);
    hLayout->addWidget(minButton);
    hLayout->addWidget(closeButton);
    hLayout->setContentsMargins(5, 0, 5, 0);
    hLayout->setSpacing(0);

    this->setLayout(hLayout);
}
开发者ID:GLDsuh-a,项目名称:qt-1,代码行数:29,代码来源:sysbuttongroup.cpp


示例14: new_video_window

void new_video_window(char *filename)
{
#ifndef IPOD
	pz_error("No video support on the desktop.");
#else /* IPOD */

	if (full_hw_version==0)
	{
		full_hw_version = ipod_get_hw_version();
	}
	outl(1, VAR_VIDEO_ON);
	outl(0, VAR_VIDEO_MODE);
	cop_wakeup();
	init_variables();
	video_status = VIDEO_CONTROL_MODE_STARTING; 
	video_curPosition = 0;
	video_gc = pz_get_gc(1);
	GrSetGCUseBackground(video_gc, GR_FALSE);
	GrSetGCForeground(video_gc, GR_RGB(0,0,0));
//nes_window("Create win");
	video_wid = pz_new_window(0, 0, screen_info.cols, screen_info.rows, video_do_draw, video_do_keystroke);

	GrSelectEvents(video_wid, 
			GR_EVENT_MASK_KEY_DOWN| GR_EVENT_MASK_KEY_UP);
	GrMapWindow(video_wid);

	GrClearWindow(video_wid, GR_FALSE);
//nes_window("Load");
	video_status_message("Loading video...");
//nes_window("Play");	
playVideo(filename);
	outl(0, VAR_VIDEO_ON);
#endif
}
开发者ID:Keripo,项目名称:ProjectZeroSlackr-SVN,代码行数:34,代码来源:video.c


示例15: assert

void Module::enter() {
	assert(_area);

	_console->printf("Entering module \"%s\"", _ifo.getName().getString().c_str());

	Common::UString startMovie = _ifo.getStartMovie();
	if (!startMovie.empty())
		playVideo(startMovie);

	_exit = false;

	CameraMan.reset();

	float entryX, entryY, entryZ;
	_ifo.getEntryPosition(entryX, entryY, entryZ);

	// Roughly head position
	CameraMan.setPosition(entryX, entryZ + 1.8, entryY);

	float entryDirX, entryDirY;
	_ifo.getEntryDirection(entryDirX, entryDirY);

	CameraMan.setOrientation(entryDirX, entryDirY);

	_area->show();
}
开发者ID:OrangeTide,项目名称:xoreos,代码行数:26,代码来源:module.cpp


示例16: playVideo

void Module::enter() {
	if (!_hasModule)
		throw Common::Exception("Module::enter(): Lacking a module?!?");

	if (!_pc)
		throw Common::Exception("Module::enter(): Lacking a PC?!?");

	_console->printf("Entering module \"%s\"", _name.c_str());

	Common::UString startMovie = _ifo.getStartMovie();
	if (!startMovie.empty())
		playVideo(startMovie);

	float entryX, entryY, entryZ, entryAngle;
	if (!getEntryObjectLocation(entryX, entryY, entryZ, entryAngle))
		getEntryIFOLocation(entryX, entryY, entryZ, entryAngle);

	// Roughly head position
	CameraMan.setPosition(entryX, entryY, entryZ + 1.8f);
	CameraMan.setOrientation(90.0f, 0.0f, entryAngle);
	CameraMan.update();

	enterArea();

	_running = true;
	_exit    = false;
}
开发者ID:clone2727,项目名称:xoreos,代码行数:27,代码来源:module.cpp


示例17: play

void MoviePlayer::play(MovieText *movieTexts, uint32 numMovieTexts, uint32 leadIn, uint32 leadOut) {
	// This happens when quitting during the "eye" cutscene.
	if (_vm->shouldQuit())
		return;

	_leadOutFrame = _decoder->getFrameCount();
	if (_leadOutFrame > 60)
		_leadOutFrame -= 60;

	_movieTexts = movieTexts;
	_numMovieTexts = numMovieTexts;
	_currentMovieText = 0;
	_leadOut = leadOut;

	if (leadIn)
		_vm->_sound->playMovieSound(leadIn, kLeadInSound);

	if (_bgSoundStream)
		_snd->playStream(Audio::Mixer::kSFXSoundType, _bgSoundHandle, _bgSoundStream);

	bool terminated = false;

	terminated = !playVideo();

	closeTextObject(_currentMovieText, NULL);

	if (terminated) {
		_snd->stopHandle(*_bgSoundHandle);
		_vm->_sound->stopMovieSounds();
		_vm->_sound->stopSpeech();
	}

	while (_snd->isSoundHandleActive(*_bgSoundHandle))
		_system->delayMillis(100);
}
开发者ID:Termimad,项目名称:scummvm,代码行数:35,代码来源:animation.cpp


示例18: keyPressed

//--------------------------------------------------------------
void kinectGuiApp::keyPressed(int key){
    if (key == 'H') { showGui = !showGui; }
    if (key == 'F') { ofToggleFullscreen(); }
    if (key == 'S') { saveSettings(); }
    if (key == 'L') { loadSettings(); }
    if (key == 'G') { grabMask(); }
    if (key == 'p') { playVideo(); }
    if (key == 'P') { pauseVideo(); }
    //if (key == ' ') { togglePlayVideo(); }
    if (key == ' ') { showBlobs = false; showMain = false; }
    if (key == 'C') { cueNextVideo(); }
    if (key == 'N') { playNextVideo(); }
    if (key == '1') { cueVideo(0); }
    if (key == '2') { cueVideo(1); }
    if (key == '3') { cueVideo(2); }
    if (key == '4') { cueVideo(3); }
    if (key == '5') { cueVideo(4); }
    if (key == '6') { cueVideo(5); }
    if (key == '7') { cueVideo(6); }
    if (key == '8') { cueVideo(7); }
    if (key == '9') { cueVideo(8); }
    if (key == '0') { cueVideo(9); }
    else if (key == 'g') { kinect.lineColor.set(ofColor(0,230,0,32)); }
    else if (key == 'b') { kinect.lineColor.set(ofColor(0,0,200,32)); }
    else if (key == 'y') { kinect.lineColor.set(ofColor(200,200,0,32)); }
    else if (key == 'm') { showBlobs = false; showMain = true; }
}
开发者ID:markpitchless,项目名称:kinectGui,代码行数:28,代码来源:kinectGuiApp.cpp


示例19: gameOver

void World::update()
{
	if (_playerBase == nullptr) {
		gameOver();
	} else if (_playerTank == nullptr) {
		if (_playerLife > 0) {
			_playerLife--;
			Tank *tank = new Tank;
			tank->setPos(_spawnPos[0]);
			_playerTank = tank;
			_tankList.append(tank);
		} else {
			gameOver();
		}
	} else if (_tankList.size() < 3) {
		if (_enemyLife > 0) {
			_enemyLife--;
			Tank *tank = new Tank;
			tank->setTeam(1);
			tank->setPos(_spawnPos[_tankList.size()]);
			tank->setAngle(2);
			_tankList.append(tank);
		}
	}
	if (_isVideo) {
		playVideo();
	} else {
		moveBots();
	}
	updateTanks();
	moveBullets();
}
开发者ID:antonikon,项目名称:BattleCity,代码行数:32,代码来源:world.cpp


示例20: startSound

void MoviePlayer::play() {
	if (_vm->getBitFlag(40)) {
		_vm->setBitFlag(42, false);
		startSound();
		return;
	}

	_leftButtonDown = false;
	_rightButtonDown = false;
	_skipMovie = false;

	_vm->_mixer->stopAll();

	_ticks = _vm->_system->getMillis();

	startSound();

	playVideo();
	stopVideo();

	_vm->o_killAnimate();

	if (_vm->getBitFlag(41)) {
		_vm->fillBackFromFront();
	} else {
		uint8 palette[768];
		memset(palette, 0, sizeof(palette));
		_vm->clearSurfaces();
		_vm->_system->getPaletteManager()->setPalette(palette, 0, 256);
	}

	_vm->fillBackGroundFromBack();
	_vm->_fastFadeOutFlag = true;
}
开发者ID:MaddTheSane,项目名称:scummvm,代码行数:34,代码来源:animation.cpp



注:本文中的playVideo函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ play_game函数代码示例发布时间:2022-05-30
下一篇:
C++ playSoundToMap函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap