XPlayerCore.h
上传用户:mony888
上传日期:2022-07-26
资源大小:1247k
文件大小:2k
源码类别:

Windows CE

开发平台:

Visual C++

  1. /*
  2.  *
  3. §==================§==================§==================§==================§
  4. §        §    §      §     §
  5. §  2005-05-18      § 1.0          §  高炜     §   creat!     §
  6. §        §    §      §     §
  7. §==================§==================§==================§==================§
  8.  *
  9.  */
  10. #ifndef _XPLAYER_CORE_H_
  11. #define _XPLAYER_CORE_H_
  12. #include "xplayer_state.h"
  13. #ifdef XPLAYERCORE_EXPORTS
  14. #define XPLAYERCORE_API __declspec(dllexport)
  15. #else
  16. #define XPLAYERCORE_API __declspec(dllimport)
  17. #endif
  18. #define XPLAYER_OK  1
  19. #define XPLAYER_ERR 0
  20. // This class is exported from the XPlayerCore.dll
  21. class XPLAYERCORE_API CXPlayerCore {
  22. public:
  23. CXPlayerCore(); //HWND h_wnd
  24. ~CXPlayerCore();
  25. int xplaying_open(SYS_FILE_CONTENT_TYPE* indicator, HWND hwnd);
  26. //控制命令,播放、停止、暂停、搜索、全屏
  27. int xplaying_command(cp_command_t command, DWORD param);
  28. int xplaying_set_volume(unsigned int volume); //设置音量
  29. int xplaying_get_volume(unsigned int* volume); //获取音量
  30. int xplaying_get_state(playing_state_t* state); //获取播放状态
  31. int xplaying_get_play_progress(unsigned int* progress); //获取播放进度
  32. int xplaying_get_play_Timelen (unsigned int* Timelen); //获取正在播放媒体长度,单位秒
  33. int xplaying_get_play_info(char** info); //获取正在播放媒体信息,单位秒
  34. int xplaying_get_mediainfo(SYS_FILE_CONTENT_TYPE* indicatorP, char *title, unsigned int *length);//获取指定媒体信息和长度 //获取媒体信息
  35. private:
  36. void *m_mp;
  37. };
  38. XPLAYERCORE_API int fnXPlayerCore(void);
  39. #endif