Jump to content
uniGUI Discussion Forums
Sign in to follow this  
mhmda

Auto play sound on mobile

Recommended Posts

It's tricky to play sound in mobile browser here a project showing how to do it.

 

You must attach the play event to a control that you know that the user will click/tap and then play and pause sound, after that you can control the play where you want automatically.

myMsound.play();
myMsound.pause();

Download: http://3msoft.net/mhmd/uni_sound_mobile.rar Port: 8845

 

Online demo: http://5.189.151.122:8845/m

  • Upvote 2

Share this post


Link to post
Share on other sites

It's tricky to play sound in mobile browser here a project showing how to do it.

 

You must attach the play event to a control that you know that the user will click/tap and then play and pause sound, after that you can control the play where you want automatically.

myMsound.play();
myMsound.pause();

Download: http://3msoft.net/mhmd/uni_sound_mobile.rar Port: 8845

 

Online demo: http://5.189.151.122:8845/m

 

very good
thank you  :D

Share this post


Link to post
Share on other sites
Sign in to follow this  

×