fix mpv showing overtop with audio cover art
This commit is contained in:
parent
48514667cf
commit
b5543c0c46
2 changed files with 4 additions and 10 deletions
|
@ -267,7 +267,7 @@ void MpvObject::doUpdate()
|
||||||
|
|
||||||
void MpvObject::command(const QVariant& params)
|
void MpvObject::command(const QVariant& params)
|
||||||
{
|
{
|
||||||
// qDebug() << params;
|
qDebug() << params;
|
||||||
mpv::qt::command(mpv, params);
|
mpv::qt::command(mpv, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,9 @@ Item {
|
||||||
id: mpvAudio
|
id: mpvAudio
|
||||||
useHwdec: true
|
useHwdec: true
|
||||||
enableAudio: true
|
enableAudio: true
|
||||||
|
// embeded mpv allows to set commandline propertys using the options/<name>
|
||||||
|
// syntax. This could be abstracted later, but for now this works.
|
||||||
|
Component.onCompleted: mpvAudio.setProperty("options/audio-display", "no");
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
|
@ -175,16 +178,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function playAudio() {
|
function playAudio() {
|
||||||
audio.stop();
|
|
||||||
audio.source = audioSource;
|
|
||||||
mpvAudio.loadFile(audioSource.toString());
|
mpvAudio.loadFile(audioSource.toString());
|
||||||
audio.play();
|
|
||||||
showPassiveNotification("We should be playing: " + audio.source)
|
|
||||||
showPassiveNotification(audio.status)
|
|
||||||
showPassiveNotification(audio.hasAudio)
|
|
||||||
showPassiveNotification(audio.duration)
|
|
||||||
showPassiveNotification(audio.errors)
|
|
||||||
showPassiveNotification(audio.errorString)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopVideo() {
|
function stopVideo() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue