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)
|
console.log(playbackState)
|
||||||
switch (playbackState){
|
switch (playbackState){
|
||||||
case MediaPlayer.PlayingState:
|
case MediaPlayer.PlayingState:
|
||||||
playerIcon.icon.source = "image://theme/icon-m-play"
|
playerIcon.icon.source = "image://theme/icon-m-pause"
|
||||||
return;
|
return;
|
||||||
case MediaPlayer.PausedState:
|
case MediaPlayer.PausedState:
|
||||||
playerIcon.icon.source = "image://theme/icon-m-pause"
|
playerIcon.icon.source = "image://theme/icon-m-play"
|
||||||
return;
|
return;
|
||||||
case MediaPlayer.StoppedState:
|
case MediaPlayer.StoppedState:
|
||||||
playerIcon.icon.source = "image://theme/icon-m-stop"
|
playerIcon.icon.source = "image://theme/icon-m-stop"
|
||||||
|
|
Loading…
Reference in a new issue