Howler.js: HowlerJS and html5 video on iOS

Created on 4 Sep 2019  路  5Comments  路  Source: goldfire/howler.js

Hi, I have trouble playing sounds via HowlerJS together with html5 video. If I play a video from the html5 video tag, and then start an audiofile (howlerJS), the audio gets destorted on ipad (not desktop PC). I can set html5:true, but then i cannot control the file volume etc on the audio. Audio and Video are supposed to play together in this case, working on a tool for listening training.. Any ideas?

All 5 comments

Have you tried the same test with 2 HMTL5 videos?

Yes, two HTML5 videos is no problem.

Re iOS: Have you had any sucess/failure getting background mode to work when the app is in the background with either one or both media objects playing?

I still have issues with this. Sometimes when app is in the background, audio is lost. When I bring the app back up, no audio is playing. I have to clear it from memory and restart.

TLDR: iOS13 doesn't play well with Javascript -- especially in the background.

I've been spending the last two weeks trying to figure out wtf is going on (in general - regarding iOS and background audio/video). The bottom line seems to be that iOS is agressively killing/breaking various apps' functionalities which utilize background modes.

more info: https://twitter.com/marcoarment/status/1189899504562122752

Seriously, just search for iOS 13 breaking apps and you'll find a host of idiotic failures present in both ios13, as a whole, and the latest iOS 13.2 update.

Considering the amount of time I lost debugging problems which are a result of sloppy management at a firm which positions itself as top-tier; Android has never looked so appealing to me as both an end-user and developer.

Save your sanity and play around with some of the streaming radio/video demos on Github. iOS kills Javascript execution for backgrounded apps, which pretty much invalidates some of the key benefit of Howler.

I think React Native/NativeScript is another avenue worth exploring if you want a timely fix.

Have you tried examining breakpoints in XCode to dig deeper at the cause of the problem? I'm convinced it's a JS running in the background problem; don't waste your time trying to debug this if you value your sanity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

indexofrefraction picture indexofrefraction  路  4Comments

jmeyers91 picture jmeyers91  路  4Comments

kamkha picture kamkha  路  3Comments

lili21 picture lili21  路  4Comments

Friksel picture Friksel  路  4Comments