2010-12-04 16:14:34 +00:00
/********************************************************
* VideoPlayer . h *
* *
* XFX VideoPlayer file *
* Copyright <EFBFBD> XFX Team . All Rights Reserved *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2010-12-27 01:01:25 +00:00
# ifndef _XFX_MEDIA_VIDEOPLAYER_
# define _XFX_MEDIA_VIDEOPLAYER_
2010-12-04 16:14:34 +00:00
2010-12-27 01:01:25 +00:00
# include "Enums.h"
# include <System/TimeSpan.h>
2010-12-04 16:14:34 +00:00
# include "../Graphics/Texture2D.h"
2010-12-27 01:01:25 +00:00
using namespace System ;
using namespace XFX : : Graphics ;
2010-12-04 16:14:34 +00:00
namespace XFX
{
namespace Media
{
class Video ;
/// <summary>
/// Provides methods and properties to playback, pause, resume, and stop video. VideoPlayer also exposes repeat, volume, and play position information.
/// </summary>
class VideoPlayer
{
private :
2010-12-27 01:01:25 +00:00
bool isDisposed ;
2010-12-04 16:14:34 +00:00
void Dispose ( bool disposing ) ;
protected :
~ VideoPlayer ( ) ;
public :
2010-12-27 01:01:25 +00:00
bool IsDisposed ( ) ;
bool IsLooped ;
bool IsMuted ;
2010-12-04 16:14:34 +00:00
TimeSpan PlayPosition ( ) ;
MediaState_t State ( ) ;
Video Video_ ( ) ;
float Volume ;
VideoPlayer ( ) ;
void Dispose ( ) ;
Texture2D GetTexture ( ) ;
void Pause ( ) ;
2010-12-27 01:01:25 +00:00
void Play ( Video video ) ;
2010-12-04 16:14:34 +00:00
void Resume ( ) ;
void Stop ( ) ;
} ;
}
}
2010-12-27 01:01:25 +00:00
# endif //_XFX_MEDIA_VIDEOPLAYER_