The exe program is gst-player.exe from gstreamer. It supports typing like pause, play from the command line. It is for windows os. If somebody can, please provide an example using dbus/sockets/hooks
The exe program is gst-player.exe from gstreamer. It supports typing like pause, play from the command line. It is for windows os. If somebody can, please provide an example using dbus/sockets/hooks
If the program accepts commands like that from any input then I guess you can just write "pause\n" or "play\n" to std out (for the environment where your process is running).
Can you post an example of some code for that? That would be helpful thanks. I'm not that knowledgeable at programming but I do know some and I can learn fast.
In that case You can write something like that:
Of-course QProcess needs to be run at that time.Qt Code:
QProcess->write( "command" );To copy to clipboard, switch view to plain text mode
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Thanks for the code, it helped a lot. Here is a sampling of my code now.
In my mainwindow.cpp I have:
commandProcess.start("Path to gst-player.exe",args);
This starts the .exe file. To input additional commands that could be typed from command prompt to control the player I use:
commandProcess.write("pause\n");
This pauses the media file that is playing. That line of code works with other commands that can be typed at command prompt which control the player like "continue" "stop" quit". This all happens when I click buttons on a gui I am making/experimenting now. Hope this helps others too.
Bookmarks