Hi i am creating my own user interface using python. In this i currently run mplayer from a click with nohup (so as not to mess up the server running), what i would like to do is add a pause button.
Is this possible when running nohup or is there a better way to do it?
so trying
os.system("nohup mplayer file.mp3 &")
does not allow a pause as far as i could find.
then;
os.system("rm /tmp/mplayer")
os.system("mkfifo /tmp/mplayer")
os.system("nohup mplayer -slave -input file=/tmp/mplayer file.mp3 &")
My pause button is then created using;
os.system("echo pause > /tmp/mplayer") ##click again to unplay
works if typed in new terminal but kills my webserver whilst playing. So does not work from webserver.
Currently working with Flask/Python and jinja templates.
Many thanks