Skip to content

Commit

Permalink
Merge pull request #3 from OpenVoiceOS/add_mycroft_player_and_positio…
Browse files Browse the repository at this point in the history
…n_prop

add player pos property and fix mycroft players for plugin
  • Loading branch information
JarbasAl authored Aug 15, 2021
2 parents da1fb8c + d2c8e28 commit bf35188
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
9 changes: 8 additions & 1 deletion ovos_workshop/res/ui/AudioPlayer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ Mycroft.Delegate {
property var playerState: media.status
property var nextAction: "next"
property var previousAction: "previous"
property var postionFromMetadata: media.position

onPositionFromMetadataChanged: {
if(playerState === "Playing"){
playerPosition = media.position
}
}

onIsVerticalChanged: {
if(isVertical){
Expand Down Expand Up @@ -299,4 +306,4 @@ Mycroft.Delegate {
}
}
}
}
}
7 changes: 4 additions & 3 deletions ovos_workshop/res/ui/MycroftAudioPlayer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Mycroft.CardDelegate {
console.log("Image: " + root.thumbnail)
}
}

ColumnLayout {
anchors.top: parent.top
anchors.left: parent.left
Expand Down Expand Up @@ -444,8 +444,8 @@ Mycroft.CardDelegate {
anchors.bottom: parent.bottom
anchors.bottomMargin: Mycroft.Units.gridUnit * 0.5
anchors.horizontalCenter: parent.horizontalCenter
anchors.leftMargin: parent.width * 0.05
anchors.rightMargin: parent.width * 0.11
anchors.leftMargin: parent.width * 0.11
anchors.rightMargin: parent.width * 0.16

Row {
width: parent.width
Expand Down Expand Up @@ -557,3 +557,4 @@ Mycroft.CardDelegate {
}
}
}

2 changes: 1 addition & 1 deletion ovos_workshop/res/ui/MycroftSeekControl.qml
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,4 @@ Item {
var seconds = ((millis % 60000) / 1000).toFixed(0);
return minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
}
}
}
1 change: 1 addition & 0 deletions ovos_workshop/res/ui/MycroftVideoPlayer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,4 @@ Mycroft.Delegate {
}
}
}

2 changes: 1 addition & 1 deletion ovos_workshop/res/ui/images/media-playlist-shuffle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ovos_workshop/res/ui/images/media-skip-backward.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ovos_workshop/res/ui/images/media-skip-forward.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='ovos_workshop',
version='0.0.4a4',
version='0.0.4a5',
packages=['ovos_workshop',
'ovos_workshop.skills',
'ovos_workshop.skills.decorators',
Expand Down

0 comments on commit bf35188

Please sign in to comment.