73 QStringList arguments;
74 arguments <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-vo" <<
"directx:noaccel" << url;
83 QStringList arguments;
84 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-vo" <<
"directx:noaccel" << url;
93 QStringList arguments;
94 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-zoom" <<
"-wid" << QString::number(winId);
96 arguments <<
"-vo" <<
"direct3d";
98 arguments <<
"-vo" <<
"x11";
102 m_process->setProcessChannelMode(QProcess::MergedChannels);
111 QStringList arguments;
112 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-zoom" <<
"-loop" << 0 <<
"-wid" << QString::number(winId);
114 arguments <<
"-vo" <<
"direct3d";
116 arguments <<
"-vo" <<
"x11";
120 m_process->setProcessChannelMode(QProcess::MergedChannels);
132 m_process->write(QString(
"seek %1 2\n").arg(pos).toUtf8());
142 m_process->write(QString(
"mute %1\n").arg(mute ? 1 : 0).toUtf8());
152 m_process->write(QString(
"volume %1 1\n").arg(value).toUtf8());
203 if(message.startsWith(
"ANS_LENGTH"))
232 if(message.startsWith(
"ANS_TIME_POSITION"))
245 if(message.startsWith(
"ANS_LENGTH"))
251 if(message.startsWith(
"ANS_TIME_POSITION"))
void setMedia(Module type, const QString &url, int winId=-1)
#define MAKE_PLAYER_PATH_FULL
void positionChanged(qint64 position)
void setRadioMedia(const QString &url)
TTK_MODULE_EXPORT void killProcessByName(const QString &process, bool more=false)
void setVideoMedia(const QString &url, int winId)
void setVolume(int value)
TTK::PlayState m_playState
void durationChanged(qint64 duration)
The namespace of the application object.
void setMovieMedia(const QString &url, int winId)
void setMusicMedia(const QString &url)
void mediaChanged(const QString &url)
void setPosition(qint64 pos)
#define TTK_ERROR_STREAM(msg)
MusicCoreMPlayer(QObject *parent=nullptr)