Input.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #ifndef INPUT_H
- #define INPUT_H
- #include "InputFile.h"
- #include "InputInternet.h"
- class MediaInput : public MediaItemInput {
- private:
- MediaInputFile *inputFile;
- MediaInputInternet *inputInternet;
- MediaItemInput *input;
- public:
- MediaInput();
- ~MediaInput();
- media_type_t GetType();
- char *GetName();
- MP_RESULT Connect(MediaItem *item);
- MP_RESULT ReleaseConnections();
- DWORD GetCaps();
- MP_RESULT Configure(HINSTANCE hInstance, HWND hwnd);
- MP_RESULT Open(char *url, media_input_mode_t mode);
- long GetSize();
- long GetBufferSize();
- long GetBufferPosition();
- long GetBufferingSize();
- unsigned int Read(MediaBuffer *mb, unsigned int size);
- unsigned int Seek(int size, media_input_seek_t method);
- unsigned int GetLine(MediaBuffer *mb);
- BOOL EndOfFile();
- MP_RESULT Close();
- };
- #endif