⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dx_video_player.h

📁 彩信浏览器
💻 H
字号:
/* * This file is part of Ambulant Player, www.ambulantplayer.org. * * Copyright (C) 2003-2007 Stichting CWI,  * Kruislaan 413, 1098 SJ Amsterdam, The Netherlands. * * Ambulant Player is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * Ambulant Player is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Ambulant Player; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *//*  * @$Id: dx_video_player.h,v 1.15 2007/02/12 14:14:22 jackjansen Exp $  */#ifndef AMBULANT_GUI_DX_VIDEO_PLAYER_H#define AMBULANT_GUI_DX_VIDEO_PLAYER_H#include "ambulant/config/config.h"#include <string>#include <objbase.h>#include <strmif.h>#include <control.h>#include <mmstream.h>#include <amstream.h>#include <ddstream.h>#include "ambulant/lib/gtypes.h"#include "ambulant/common/playable.h"#pragma comment (lib,"winmm.lib")#pragma comment (lib,"amstrmid.lib")#pragma comment (lib,"uuid.lib")#pragma comment (lib,"strmiids.lib")namespace ambulant {	namespace lib { 		class event_processor;		class event;	}}namespace ambulant {namespace gui {namespace dx {class video_player : public common::playable {  public:	video_player(const std::string& url, IDirectDraw* ddraw);	~video_player();		void start(double t);	void stop();	void pause(common::pause_display d=common::display_show);	void resume();	void seek(double t);	common::duration get_dur();	void wantclicks(bool want) { m_wantclicks = want;}	void preroll(double when, double where, double how_much) {}	cookie_type get_cookie() const { return m_cookie;}		bool can_play();	bool is_playing();	double get_position();	const std::string& get_url() const { return m_url;}		// dx implementation artifacts	bool update(); 	IDirectDrawSurface *get_ddsurf() { return m_ddsurf;}	lib::size get_size() const {		return lib::size(m_rcsurf.right, m_rcsurf.bottom);	}	 private:	bool open(const std::string& url, IDirectDraw* dd); 	void release_player(); 		std::string m_url;	cookie_type m_cookie;		IMultiMediaStream *m_mmstream;    IMediaStream *m_vidstream;    IDirectDrawMediaStream *m_ddstream;    IDirectDrawStreamSample *m_ddsample;    IDirectDrawSurface* m_ddsurf;    RECT m_rcsurf;    bool m_wantclicks;	};	} // namespace dx} // namespace gui } // namespace ambulant#endif // AMBULANT_GUI_DX_VIDEO_PLAYER_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -