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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...