XPlayerCore.h
资源名称:111.rar [点击查看]
上传用户:mony888
上传日期:2022-07-26
资源大小:1247k
文件大小:2k
源码类别:
Windows CE
开发平台:
Visual C++
- /*
- *
- §==================§==================§==================§==================§
- § § § § §
- § 2005-05-18 § 1.0 § 高炜 § creat! §
- § § § § §
- §==================§==================§==================§==================§
- *
- */
- #ifndef _XPLAYER_CORE_H_
- #define _XPLAYER_CORE_H_
- #include "xplayer_state.h"
- #ifdef XPLAYERCORE_EXPORTS
- #define XPLAYERCORE_API __declspec(dllexport)
- #else
- #define XPLAYERCORE_API __declspec(dllimport)
- #endif
- #define XPLAYER_OK 1
- #define XPLAYER_ERR 0
- // This class is exported from the XPlayerCore.dll
- class XPLAYERCORE_API CXPlayerCore {
- public:
- CXPlayerCore(); //HWND h_wnd
- ~CXPlayerCore();
- int xplaying_open(SYS_FILE_CONTENT_TYPE* indicator, HWND hwnd);
- //控制命令,播放、停止、暂停、搜索、全屏
- int xplaying_command(cp_command_t command, DWORD param);
- int xplaying_set_volume(unsigned int volume); //设置音量
- int xplaying_get_volume(unsigned int* volume); //获取音量
- int xplaying_get_state(playing_state_t* state); //获取播放状态
- int xplaying_get_play_progress(unsigned int* progress); //获取播放进度
- int xplaying_get_play_Timelen (unsigned int* Timelen); //获取正在播放媒体长度,单位秒
- int xplaying_get_play_info(char** info); //获取正在播放媒体信息,单位秒
- int xplaying_get_mediainfo(SYS_FILE_CONTENT_TYPE* indicatorP, char *title, unsigned int *length);//获取指定媒体信息和长度 //获取媒体信息
- private:
- void *m_mp;
- };
- XPLAYERCORE_API int fnXPlayerCore(void);
- #endif