Brent
Brent

Reputation: 50

Music stops while scrolling in Cordova App

With the update to iOS 12.0.1, I noticed an issue with my app built in Cordova.

I have an MP3 file playing, but when I scroll the audio pauses and then resumes when I stop scrolling. See this video.

The code I am using for the audio player is standard HTML:

<audio
  id="compline_audio"
  src="https://s3.us-east-2.amazonaws.com/pf.opcompline/compline_mon_ot.mp3"
  controls
  controlsList="nodownload">
  Your browser does not support the <code>audio</code> element.
</audio>

Upvotes: 1

Views: 408

Answers (1)

Judah Gabriel Himango
Judah Gabriel Himango

Reputation: 60041

Edit March 29th, 2019: I'm pleased to report that this is fixed in iOS 12.2. I just tested it and verified it is working again.


This is a bug in WebKit introduced in iOS 12. It was fixed by this patch, and tracked in this changeset, submitted in January 2019. This fix isn't yet included in any public iOS versions. At the time of this writing, iOS 12.1.4 is the latest version of iOS, and the fix is not present in this version.

I expect to see an iOS release sometime in 2019 with this fix included. I'll update this post when an iOS is released with the fix.

Upvotes: 1

Related Questions