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

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

问题描述

嗯,我有它运行VLC播放器在后台作为服务的Adobe AIR的。我检查,在Windows任务管理器,该服务运行时AIR应用程序启动。 这里是code

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播放器上的按钮单击事件,我已经搜查了vlc-文件,发现quit命令,它的语法,这是行不通的,因为我已经尝试过的语法,从Windows命令提示符下也.. 哪些是VLC播放器的命令,可以暂停,停止和关闭VLC播放器? 任何有用的链接将大大帮助我..

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-虚假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.

我不无有关Adobe什么,但我已经做了一些摸索和的这家伙用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.

其他的事情,我发现这个职位 Adob​​e AIR和VLC播放器,其中提到,你应该能够使用JavaScript和Windows ActiveX控件。在一个小伙子<一href="http://www.salling.com/forums/viewtopic.php?t=3116&postdays=0&postorder=asc&start=0"相对=nofollow>这个论坛有一个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命令。搜索下一个,preV,停止,退出,卷机等在这个文件

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天全站免登陆