Fix playerIcons
Show pause button when playingState Show play button when pausingState
This commit is contained in:
parent
141e25e0d7
commit
c4820adaf2
1 changed files with 2 additions and 2 deletions
|
@ -57,10 +57,10 @@ Page {
|
|||
console.log(playbackState)
|
||||
switch (playbackState){
|
||||
case MediaPlayer.PlayingState:
|
||||
playerIcon.icon.source = "image://theme/icon-m-play"
|
||||
playerIcon.icon.source = "image://theme/icon-m-pause"
|
||||
return;
|
||||
case MediaPlayer.PausedState:
|
||||
playerIcon.icon.source = "image://theme/icon-m-pause"
|
||||
playerIcon.icon.source = "image://theme/icon-m-play"
|
||||
return;
|
||||
case MediaPlayer.StoppedState:
|
||||
playerIcon.icon.source = "image://theme/icon-m-stop"
|
||||
|
|
Loading…
Reference in a new issue