• 5635阅读
  • 3回复

APlayer需要如何配置才能使用? [复制链接]

上一主题 下一主题
离线markly
 

只看楼主 倒序阅读 使用道具 楼主  发表于: 2013-12-27
APlayer需要如何配置才能使用?
我用Delphi 把APlayer3 的ActiveX控件加入成功后,并创建了一个测试项目,但什么格式的视频都播放不了?

procedure TForm1.btn1Click(Sender: TObject);
const
  path = 'N:\人人影视双语字幕\猫狗大战2BD中英双字.rmvb';
begin
  APlayer1.Open(path);
  APlayer1.Play;
end;
难道不对吗?
离线aplayer

只看该作者 沙发  发表于: 2014-01-06
你是否下载了完整解码包,  并解压到了 APlayer 所在目录的 codecs 子目录?
如果还是播放不了,请给出一个日志, 取日志方法如下:

在APlayer 控件上,按住鼠标右键 和 键盘的 Ctrl 键不放一小会,
会弹出一个对话框,点确定就打开一个资源管理器窗口,并且会选中该窗口中的日志文件,
然后让播放一下出问题的影片,最后就把那个日志压缩发来就行。
离线jeeren

只看该作者 板凳  发表于: 2017-04-08
APlayer[00:01:28.828][0B18]: APlayer log enabled
APlayer[00:01:28.828][0B18]: Date: 2017-04-08
APlayer[00:01:28.828][0B18]: OS: Windows Vista or Windows 7 (6.1.7601)
APlayer[00:01:28.828][0B18]: Is 64 bit system = 1
APlayer[00:01:28.829][0B18]: IE Version: (8.0.7601.17514)
APlayer[00:01:28.829][0B18]: APlayer: C:\Users\Public\Thunder Network\APlayer\APlayer_3.9.0.761.dll (3.9.0.761)
APlayer[00:01:28.829][0B18]: Application: E:\program\Delphi\Works\APlayer\Win32\Debug\APlayer.exe (1.0.0.0)
APlayer[00:01:28.829][0B18]: DebugOutput = 1
APlayer[00:01:28.945][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:29.245][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:29.545][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:29.845][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:30.145][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:30.445][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:30.745][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:31.045][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:31.345][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:31.645][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:31.945][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:32.245][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:32.545][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:32.845][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:33.145][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:33.445][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:33.745][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:34.046][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:34.346][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:34.646][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:34.669][0A8C]: DLL_THREAD_ATTACH
APlayer[00:01:34.702][0A8C]: DLL_THREAD_DETACH
APlayer[00:01:34.946][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:35.246][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:35.546][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:35.846][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:36.146][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:36.446][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:36.746][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:37.046][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:37.346][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
APlayer[00:01:37.646][1080]: DownloadCodec, WaitForSingleObject return WAIT_TIMEOUT.
离线aplayer

只看该作者 地板  发表于: 2017-04-12
回 jeeren 的帖子
jeeren:APlayer[00:01:28.828][0B18]: APlayer log enabled
APlayer[00:01:28.828][0B18]: Date: 2017-04-08
APlayer[00:01:28.828][0B18]: OS: Windows Vista or Windows 7 (6.1.7601)
APlayer[00:01:28.828][0B18]: Is 64 bit system = 1
APlayer[00:01:28.829][0B18]: IE Version: (8 .. (2017-04-08 00:02) 

请参考 SDK 的 APlayerSDK.chm 帮助文件,
APlayer 缺少某个解码器会发送 OnDownloadCodec 事件,
调用者按需下载解码器到 OnDownloadCodec 参数的指定目录,
下载完后,使用 SetConfig(19, "1") 通知 APlayer 下载完成,即可进入播放。
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个