Jump to content

Auto play sound on mobile


mhmda

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

  • Like 1
  • Upvote 1
Link to comment
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
Link to comment
Share on other sites

  • 2 years later...
  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...