是否有任何命令可以从命令行暂停、停止和关闭 vlc 播放器? [英] is there any command to pause, stop and close vlc player from command line?

查看:96
本文介绍了是否有任何命令可以从命令行暂停、停止和关闭 vlc 播放器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我有一个 adobe air,它在后台运行 vlc-player 作为服务.我在 Windows 任务管理器中检查,该服务在空中应用程序启动时运行.这是代码

Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches. here is the code

    processArgs.push("--extraintf");
 processArgs.push("rc"); //Remote control
 processArgs.push("--rc-fake-tty"); //Use terminal as output
 processArgs.push("screen://");
    processArgs.push(":screen-fps=15");
    processArgs.push(":screen-caching=100");
    processArgs.push(":sout=#transcode{venc=x264{bframes=0,nocabac,ref=1,nf,level=13,crf=24,partitions=none},vcodec=h264,fps=15,vb=3000,width=800,height=600,acodec=none}:duplicate{dst=std{mux=mp4,access=file,dst='"+targetFile.nativePath+"'}}");
    startupInfo.arguments = processArgs;

 p = new NativeProcess();
 p.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
 p.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, onErrorData);
 p.addEventListener(NativeProcessExitEvent.EXIT, onExit);

现在我想在按钮单击事件上关闭 vlc-player 并且我搜索了 vlc- 文档并找到了退出命令及其语法,它不起作用,因为我也从 Windows 命令提示符尝试了该语法..哪些 vlc-player 命令可以暂停、停止和关闭 vlc-player?任何有用的链接都会对我很有帮助..

now i want to close vlc-player on the button click event and i have searched the vlc- documents and found quit command and its syntax, it does not work as i have tried that syntax from windows command prompt also.. Which are the vlc-player commands that can pause,stop and close vlc-player?? Any useful link will be much helpful to me..

推荐答案

我环顾四周,发现这个 (--rc-fake-tty) 无法从 Windows 命令行完成.这意味着你目前的方法已经过时了.

I've had quite a look around and looks like this (--rc-fake-tty) can't be done from Windows command line. Which means your current approach is out.

我对 Adob​​e 一无所知,但我已经做了一些搜索和 这家伙用 libVLC 用 C 语言编写了一些东西.不确定这是否会帮助您或为您指明正确的方向.

I don't no anything about Adobe but I have done some searching around and this guy has something written in C using the libVLC. Not sure if that will help or point you in the right direction.

我发现的另一件事是这篇文章 Adobe Air 和 VLC 播放器 其中提到您应该能够在 Windows 上使用 javascript 和 ActiveX 控件.这个论坛中的一个人 有一个 javascript 脚本,它使用 ActiveX 控件来启动、停止、暂停等.

The other thing I found was this post Adobe Air and VLC player which mentions that you should be able to use javascript and ActiveX controls on Windows. A guy in this forum has a javascript script which uses an ActiveX control to start, stop, pause etc.

您可以发送一个 VLC 命令来覆盖或设置某些热键.在本文档中搜索下一个、上一个、停止、退出、卷起等.

There is a VLC command that you can send to override or set certain hotkeys. Search for next, prev, stop, quit, vol-up, etc in this document.

这是我最好的谷歌搜索能力,希望能帮到你.

That's the best of my Googling abilities, hope it helps.

这篇关于是否有任何命令可以从命令行暂停、停止和关闭 vlc 播放器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆