question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working on mobile

See original GitHub issue

The component works perfectly on desktop browsers but when i run my website on an Iphone with the last version of safari, or with an android running chrome the sounds are not being played, I am using React V16, and the version of this library is the: 0.6.4 this is the component i have for playing audio: class Speaker extends Component{ render(){ var play = null; if(this.props.play) play = (<ReactAudioPlayer src={this.props.src} autoPlay style={{display:"none"}} onEnded={this.props.onEnded} />) return( <span> {play} </span> ) } }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
justinmccommented, Dec 14, 2017

Are you aware of the autoplay restrictions on mobile? For example on mobile Chrome: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

If you set controls, does it work when you hit the play button?

0reactions
wontwoncommented, Feb 10, 2022

Hi @justinmc, for some reason I was using this plugin about 5 months ago for my project to play recorded audio messages in mp3 format. Everything worked fine before, but when I came back to update my app, the audio just stopped playing on mobile. It works just fine on desktop chrome

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix internet connection problems on Android devices
General troubleshooting tips for Android devices · Check that mobile data is turned on and you have a data connection · Turn airplane...
Read more >
How to fix common smartphone problems - Popular Science
If, after some digging, you've determined that your phone is truly at fault, start with a simple reboot. This will reset all your...
Read more >
How to fix a phone that won't turn on - Asurion
1. Restart the phone · 2. Charge the battery · 3. Enable Safe Mode · 4. Check for damage · 5. Perform a...
Read more >
How to Fix Mobile Data Not Working on Android
Apps, system updates, and glitches can all cause issues with mobile data not working. To reset your network settings: Go to “Settings -> ......
Read more >
How to Fix It When Mobile Data Is Not Working - Lifewire
Causes of Mobile Data Not Working. A no data connection error can be the result of a basic software glitch, damaged hardware, or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found