I am currently trying to figure out of how to make the play icon change into a pause icon when i tap on it and once i tap on the pause icon in turns into a play icon can someone give me a formula to do this it's pretty difficult for me
You can do that by setting the Icon property as formula. Then write this formula/script:
$if(mi(state)=Playing, Pause, Play_arrow)$
The above example users the Material icon set.
Hope this helps.
Thanks it finally works