00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef VideoPlayer_h
00011 #define VideoPlayer_h
00012
00013 #include <streams.h>
00014
00015 class VideoPlayer
00016 {
00017 public:
00018 VideoPlayer(const char *name, bool image);
00019 virtual ~VideoPlayer();
00020 int isNull();
00021
00022 void play();
00023 void stop();
00024 void seek(int frame);
00025
00026 private:
00027
00028 void showError(const char* msg, HRESULT hr);
00029
00030 int _valid;
00031 int _playing;
00032
00033 IMediaControl* _imCtrl;
00034 IMediaSeeking* _imSeek;
00035 };
00036
00037 #endif
00038
00039