你好朋友我正在使用播放按钮从我的 qt 应用程序播放 mplayer....我还有两个按钮称为暂停和停止....在播放按钮中我使用系统 ("mplayer"+s.toAscii()+"& "); 其中 s 是播放列表。
在暂停按钮中,我使用了 system("p"); 但它不工作。我可以使用 system("ps -A |grep mplayer > PID.txt"); 将 mplayer 的进程 ID 存储到文本文件中。是否有任何命令可以使用 PId .... 停止和暂停 mplayer?
提前致谢