Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

A Basic Media Player

, 10 Jan 2013
Using MCIWnd wrapper class to write a simple media player
// Player.h: interface for the CPlayer class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PLAYER_H_INCLUDED_)
#define AFX_PLAYER_H_INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CPlayer  
{
public:
	HWND GetParent();
	void SetParent(HWND hParent);
	void Break();
	void Loop();
	CString GetMode();
	void Resume();
	void Pause();
	void Stop();
	void Play();
	CString GetPath();
	void SetPath(CString sPath);
	CPlayer(HWND hwParent);
	CPlayer::CPlayer();
	virtual ~CPlayer();


protected:
	HWND hwndParent;
	HWND c_Player;
	CString m_sPath;
};

#endif // !defined(AFX_PLAYER_H_INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

Share

About the Author

M. Bonvari
Other
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140814.1 | Last Updated 10 Jan 2013
Article Copyright 2003 by M. Bonvari
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid