updates to fix qml
This commit is contained in:
parent
7b82202c51
commit
66f313675b
21 changed files with 211 additions and 229 deletions
|
@ -1,13 +1,12 @@
|
|||
import QtQuick 2.15
|
||||
import QtQuick.Dialogs 1.0
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Window 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtMultimedia
|
||||
/* import QtAudioEngine 1.15 */
|
||||
import org.kde.kirigami 2.13 as Kirigami
|
||||
import "./" as Presenter
|
||||
import org.presenter 1.0
|
||||
import mpv 1.0
|
||||
|
||||
FocusScope {
|
||||
id: root
|
||||
|
@ -454,13 +453,12 @@ FocusScope {
|
|||
onTriggered: root.visible ? keyHandler.forceActiveFocus() : null
|
||||
}
|
||||
|
||||
MpvObject {
|
||||
MediaPlayer {
|
||||
id: audio
|
||||
useHwdec: true
|
||||
enableAudio: true
|
||||
audioOutput: AudioOutput {}
|
||||
// embeded mpv allows to set commandline propertys using the options/<name>
|
||||
// syntax. This could be abstracted later, but for now this works.
|
||||
Component.onCompleted: audio.setProperty("options/audio-display", "no");
|
||||
/* Component.onCompleted: audio.setProperty("options/audio-display", "no"); */
|
||||
}
|
||||
|
||||
function pauseVideo() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue