68 QStringList arguments;
69 arguments <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-vo" <<
"directx:noaccel" << url;
78 QStringList arguments;
79 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-vo" <<
"directx:noaccel" << url;
88 QStringList arguments;
89 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-zoom" <<
"-wid" << QString::number(winId);
91 arguments <<
"-vo" <<
"direct3d";
93 arguments <<
"-vo" <<
"x11";
97 m_process->setProcessChannelMode(QProcess::MergedChannels);
106 QStringList arguments;
107 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-zoom" <<
"-loop" << 0 <<
"-wid" << QString::number(winId);
109 arguments <<
"-vo" <<
"direct3d";
111 arguments <<
"-vo" <<
"x11";
115 m_process->setProcessChannelMode(QProcess::MergedChannels);
127 m_process->write(QString(
"seek %1 2\n").arg(pos).toUtf8());
137 m_process->write(QString(
"mute %1\n").arg(mute ? 1 : 0).toUtf8());
147 m_process->write(QString(
"volume %1 1\n").arg(value).toUtf8());
198 if(message.startsWith(
"ANS_LENGTH"))
227 if(message.startsWith(
"ANS_TIME_POSITION"))
240 if(message.startsWith(
"ANS_LENGTH"))
246 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)
void setVideoMedia(const QString &url, int winId)
void setVolume(int value)
TTK::PlayState m_playState
void durationChanged(qint64 duration)
The namespace of the process utils.
void setMovieMedia(const QString &url, int winId)
void setMusicMedia(const QString &url)
void mediaChanged(const QString &url)
TTK_MODULE_EXPORT void killProcessByName(const QString &process)
void setPosition(qint64 pos)
#define TTK_ERROR_STREAM(msg)
MusicCoreMPlayer(QObject *parent=nullptr)