我正在使用播放按钮从我的qt应用程序中播放mplayer.我有两个叫做暂停和停止的按钮.对于播放按钮,我用system ("mplayer "+s.toAscii()+"&");其中s的播放列表.
system ("mplayer "+s.toAscii()+"&");
s
对于我使用的暂停按钮,system("p");但它不起作用.我能够将mplayer的进程ID存储到文本文件中system("ps -A |grep mplayer > PID.txt");.
system("p");
system("ps -A |grep mplayer > PID.txt");
是否有任何命令可以使用PId停止和暂停mplayer?
qt4 mplayer
mplayer ×1
qt4 ×1