adding a playpause ability in videos
This commit is contained in:
parent
8b7cd23f8b
commit
9a180f7df0
5 changed files with 73 additions and 6 deletions
|
@ -45,7 +45,7 @@ Item {
|
|||
|
||||
MpvObject {
|
||||
id: mpv
|
||||
objectName: "mpv"
|
||||
/* objectName: "mpv" */
|
||||
anchors.fill: parent
|
||||
useHwdec: true
|
||||
enableAudio: !preview
|
||||
|
@ -178,4 +178,8 @@ Item {
|
|||
function playPauseVideo() {
|
||||
mpv.playPause();
|
||||
}
|
||||
|
||||
function playVideo() {
|
||||
mpv.play();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue