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");
processArgs.push("--rc-fake-tty");
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.
source
share