现在小弟正在用QT,基于Mplayer做一个很简单的播放器。但是要求两个屏幕播放2个文件。我现在在看SMplayer的codes。但是有些看不懂。想请教一下各位。
1. qDebug 这个语句是什么意思?(很白痴的问题吧。。。。但是我确实不明白)
比如 void Core::stopMplayer() {
qDebug("Core::stopMplayer");
if (!proc->isRunning()) {
qWarning("Core::stopMplayer: mplayer in not running!");
return;
}
tellmp("quit");
qDebug("Core::stopMplayer: Waiting mplayer to finish...");
if (!proc->waitForFinished(5000)) {
qWarning("Core::stopMplayer: process didn't finish. Killing it...");
proc->kill();
}
qDebug("Core::stopMplayer: Finished. (I hope)");
}
2. Mplayer有一些语句。
比如我在code里面写 mplayer.startDetached("mplayer"+str_file+"</dev/null"); 就可以实现播放文件的功能。那么我要实现 暂停,停止,前进等功能。需要怎么写呢?就是说哪里可以看到怎样在我的QT的core.cpp里面调用Mplayer实现命令。。谢谢大家的建议!!!