Mp3 files don't play on latest Opera (version 100)
theGolyo opened this issue · comments
The Problem
Mp3 support check fails on opera version 100.
I suspect the issue is that the user agent check assumes a double digit version number here:
var checkOpera = ua.match(/OPR\/([0-6].)/g);
var isOldOpera = (checkOpera && parseInt(checkOpera[0].split('/')[1], 10) < 33);
Reproducible Example
https://jsfiddle.net/npj3fk7b/
Reproduction Steps
- open the jsfiddle in opera version 100+
- mp3 codec support logs as false in the console
- press play button
- notice that the sound doesn't play
Possible Solution
The regexp could be changed to match three digit numbers properly. i.e. /OPR\/([0-9]+)/g
Opera v33 is pretty old at this point, it could be considered if this flag (isOldOpera) is needed at all nowadays.
Context
No response
Howler.js Version
2.2.3
Affected Browser(s)/Versiuon(s)
Opera One(version: 100.0.4815.30)
Same issue here. Is there any plan to fix this soon?
It seems like this project has been somewhat abandoned lately, so I would not expect a fix to be merged anytime soon. I'm currently using a fork with the patch mentioned above.
Thanks for the heads up! It seems I will go with a fork solution as well
Same issue. @goldfire any plans to continue supporting this library?
+1 using the fork for now
Sorry about the delay on this one, I've just gotten the fix added and release v2.2.4 on npm.