Add IdleInhibitor
This commit is contained in:
parent
bfc2adfca4
commit
e7577ed488
6 changed files with 231 additions and 1 deletions
|
|
@ -13,6 +13,11 @@ Singleton {
|
|||
property real currentPosition: 0
|
||||
property int selectedPlayerIndex: 0
|
||||
property bool isPlaying: currentPlayer ? currentPlayer.isPlaying : false
|
||||
|
||||
// Auto-inhibit idle when media is playing
|
||||
onIsPlayingChanged: {
|
||||
IdleInhibitorService.inhibitForMedia(isPlaying)
|
||||
}
|
||||
property string trackTitle: currentPlayer ? (currentPlayer.trackTitle || "") : ""
|
||||
property string trackArtist: currentPlayer ? (currentPlayer.trackArtist || "") : ""
|
||||
property string trackAlbum: currentPlayer ? (currentPlayer.trackAlbum || "") : ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue