12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #pragma once
- #include <stdio.h>
- #include "idatastruct.h"
- #ifdef _WIN32
- #ifdef LIBMEDIAPLAYER_EXPORTS
- #define LIBMEDIAPLAYER_API __declspec(dllexport)
- #else
- #define LIBMEDIAPLAYER_API __declspec(dllimport)
- #endif
- # elif ( defined(__GNUC__) && __GNUC__ >= 4 )
- #define LIBMEDIAPLAYER_API __attribute__((visibility("default")))
- #else // RVC_OS_WIN
- #define LIBMEDIAPLAYER_API
- #endif // RVC_OS_WIN
- class libmediaplayer_impl; // ге╫с
- class LIBMEDIAPLAYER_API Clibmediaplayer
- {
- public:
- Clibmediaplayer(CMediaHostApi* pHostApi);
- ~Clibmediaplayer();
- int PlayVideo(const char* pVideoDir, const char* pNamePrefix = NULL, int nVideoCount = 1);
- int PlayLocalAudio(const char* pAudioNames);
- int PlayLocalVideo(int nCfgInx, int nWndX, int nWndY, int nWndWidth, int nWndHeight);
- void Close();
- bool checkIsPlay();
- bool checkIsStop();
- int PlayMedia(CMediaPlayConfig& config);
- void SetVolume(int nVolume);
- void PlaySalesRecordVideo(int nWndX, int nWndY, int nWndWidth, int nWndHeight, const char* pVideoDir, const char* pNamePrefix = NULL, int nVideoCount = 1);
- private:
- libmediaplayer_impl* m_pImpl;
- };
- extern "C" LIBMEDIAPLAYER_API int mediaplayer_init();
- extern "C" LIBMEDIAPLAYER_API int mediaplayer_term();
|