Play pause button

I want a button like we see in music player
When I click on button then show pause button​:pause_button: and :arrow_forward:
Thanks in advance

if playButton.visible then
Set playButton.visible to false
Set pauseButton.visible to true
Else
Set playButton.visible to true
Set pauseButton.visible to false

Use this block in procedure
When playButton.click then
Play audio
Call procedure
Same for pause button on click event
I am not on my pc so i type here

2 Likes

or you can use 1 button and 2 images,
default set image to play,
when button click , if button image = play,
then change image to pause, and also play player,
else change image to play and also pause player

784

2 Likes

Thanks for help @ImranTariq and @ShaikhSajidAli
it’s working.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.