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.

Playing without audio on iOS 13.3.1

See original GitHub issue

Wavesurfer.js version(s):

3.3.1 (2020-01-14)

Browser and operating system version(s):

Safari on iOS 13.3.1

Code needed to reproduce the issue:

var wavesurfer = WaveSurfer.create({
    container: '#waveform',
    waveColor: '#ccc',
    progressColor: '#000000',
    height: 40
});
wavesurfer.load('sample.mp3');

Use behaviour needed to reproduce the issue:

Trying to play the audio does not create any errors and visually all seems to work. However, no sound can be heard. The same is true for examples that are supplied on the official Waversurfer website (https://wavesurfer-js.org/).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

3reactions
entonbibacommented, Jan 24, 2021

@thijstriemstra @katspaugh fyi I will open another PR to fix this ios silent issue once #2164 is merged. Will update the .play() method to run first before playing anything right before the interaction event is thrown. https://github.com/katspaugh/wavesurfer.js/blob/master/src/wavesurfer.js#L809 image

Since there’s no way of knowing if a mobile device is in silent mode, running it before the play() should be fine, as it’s an empty audio base64.

You may test it on your ios devices here: https://www.entonbiba.com/lab/ios2.html

2reactions
iamomiidcommented, Nov 24, 2020

Same on iOS 14

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playing video - no sound, have to run sou… - Apple Community
When attempting to play any video that is in Messages or in the Photos app - playback occurs with no sound. Sound volume...
Read more >
Developers - Playing without audio on iOS 13.3.1 -
Trying to play the audio does not create any errors and visually all seems to work. However, no sound can be heard.
Read more >
No Sound On iPhone 13? Here are some ways to fix it!
When your iPhone doesn't render any sound when using apps and playing audio files even when ringer mode is active, you're likely facing...
Read more >
How To Play YouTube Audio In The Background On iOS 13
We have tested this trick and can confirm that it works on iOS 13.3.1. 1. On your iPhone or iPad open Safari and...
Read more >
iOS 16 Changes How You Record and Send Audio Messages ...
Tap the play button to preview the audio message before sending it, the X icon in the text entry field to discard the...
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