?? xplayercore.h
字號:
/*
*
§==================§==================§==================§==================§
§ § § § §
§ 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); //設(shè)置音量
int xplaying_get_volume(unsigned int* volume); //獲取音量
int xplaying_get_state(playing_state_t* state); //獲取播放狀態(tài)
int xplaying_get_play_progress(unsigned int* progress); //獲取播放進(jìn)度
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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -