Is there any command to pause, stop and close the vlc player from the command line?

Well, I have adobe air that runs vlc-player in the background as a service. I verify that in the Windows task manager, the service starts when the application for supplying air is launched. 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);

now I want to close vlc-player on a button click event, and I searched for vlc documents and found the quit command and its syntax, it does not work, since I tried this syntax from the Windows command line. What vlc-player commands can pause, stop and close vlc-player? Any useful link would be very helpful to me.

+3
source share
2 answers

(-rc-fake-tty) Windows. , .

Adobe, - C, libVLC. , .

, , - Adobe Air VLC, , javascript ActiveX . javascript script, ActiveX , , ..

VLC, , . , , -, , .. .

Googling, , .

+1

, , --rc-fake-tty Windows, vlc ( Windows) --rc-quiet, --no-rc-quiet.

p.standardInput.writeUTFBytes("stop" + "\n");, .

0

Source: https://habr.com/ru/post/1758209/


All Articles