aplayer |
2018-07-13 11:49 |
APlayerCaller.dll 是把 ActiveX 调用转为普通 DLL调用的方式的工具,论坛有开源的代码,具体使用方法: 创建:返回 APlayer LONG_PTR 类型的句柄 LONG_PTR APlayer_Create(LONG_PTR hParentWnd, LONG x, LONG y, LONG nWidth, LONG nHeight, LONG OnMessage, LONG OnStateChanged, LONG OnOpenSuccess, LONG OnSeekCompleted, LONG OnBuffer, LONG OnVideoSizeChanged, LONG OnDownloadCodec, LONG OnEvent); 销毁:传入 APlayer 句柄 BOOL APlayer_Destroy(LONG_PTR aplayer); 调用 APlayer 方法(顾名思义): BOOL APlayer_OpenW(LONG_PTR aplayer, WCHAR* pszUrl) BOOL APlayer_OpenA(LONG_PTR aplayer, char* pszUrl) BOOL APlayer_Close(LONG_PTR aplayer) BOOL APlayer_Play(LONG_PTR aplayer) BOOL APlayer_Pause(LONG_PTR aplayer) char* APlayer_GetVersion(LONG_PTR aplayer) BOOL APlayer_SetCustomLogo(LONG_PTR aplayer,LONG nLogo) LONG APlayer_GetState(LONG_PTR aplayer) LONG APlayer_GetDuration(LONG_PTR aplayer) LONG APlayer_GetPosition(LONG_PTR aplayer) LONG APlayer_SetPosition(LONG_PTR aplayer, LONG nPosition) LONG APlayer_GetVideoWidth(LONG_PTR aplayer) LONG APlayer_GetVideoHeight(LONG_PTR aplayer) LONG APlayer_GetVolume(LONG_PTR aplayer) LONG APlayer_SetVolume(LONG_PTR aplayer, LONG nVolume) LONG APlayer_IsSeeking(LONG_PTR aplayer) LONG APlayer_GetBufferProgress(LONG_PTR aplayer) char* APlayer_GetConfigA(LONG_PTR aplayer, LONG nConfigId) WCHAR* APlayer_GetConfigW(LONG_PTR aplayer, LONG nConfigId) LONG APlayer_SetConfigW(LONG_PTR aplayer, LONG nConfigId, WCHAR* strValue) LONG APlayer_SetConfigA(LONG_PTR aplayer, LONG nConfigId, char* strValue) LONG_PTR APlayer_GetWindow(LONG_PTR aplayer) BOOL APlayerCaller_SetSize(LONG_PTR aplayer, LONG x, LONG y, LONG nWidth, LONG nHeight);
|
|