2013-05-05 18:18:41 +02:00
|
|
|
/********************************************************
|
|
|
|
* VideoPlayer.h *
|
|
|
|
* *
|
|
|
|
* XFX VideoPlayer file *
|
2013-06-02 14:32:43 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
2013-05-05 18:18:41 +02:00
|
|
|
********************************************************/
|
|
|
|
#ifndef _XFX_MEDIA_VIDEOPLAYER_
|
|
|
|
#define _XFX_MEDIA_VIDEOPLAYER_
|
|
|
|
|
|
|
|
#include "Enums.h"
|
2013-08-13 20:04:25 +02:00
|
|
|
#include <Graphics/Texture2D.h>
|
2013-05-05 18:18:41 +02:00
|
|
|
#include <System/TimeSpan.h>
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
using namespace XFX::Graphics;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Media
|
|
|
|
{
|
|
|
|
class Video;
|
|
|
|
|
2013-08-13 20:04:25 +02:00
|
|
|
/**
|
|
|
|
* Provides methods and properties to playback, pause, resume, and stop video. VideoPlayer also exposes repeat, volume, and play position information.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class VideoPlayer
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
bool isDisposed;
|
2013-08-13 20:04:25 +02:00
|
|
|
Video* playingVideo;
|
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
void Dispose(bool disposing);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
~VideoPlayer();
|
|
|
|
|
|
|
|
public:
|
|
|
|
bool IsDisposed();
|
|
|
|
bool IsLooped;
|
|
|
|
bool IsMuted;
|
|
|
|
TimeSpan getPlayPosition();
|
|
|
|
MediaState_t getState();
|
|
|
|
Video* getVideo();
|
|
|
|
float Volume;
|
|
|
|
|
|
|
|
VideoPlayer();
|
|
|
|
|
|
|
|
void Dispose();
|
|
|
|
Texture2D* GetTexture();
|
|
|
|
void Pause();
|
|
|
|
void Play(Video* video);
|
|
|
|
void Resume();
|
|
|
|
void Stop();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_MEDIA_VIDEOPLAYER_
|