IonDen / ion.sound

JavaScript plugin for playing sounds and music in browsers
http://ionden.com/a/plugins/ion.sound/en.html
MIT License
712 stars 154 forks source link

Initialization of ion.sound fails in IE11 #81

Open soerendalby opened 7 years ago

soerendalby commented 7 years ago

My javascript fails in IE11 when I use this initializatin:

ion.sound({ sounds: [ { name: "bell_ring" } ], path: "/sounds/", preload: true, volume: 2.0 }); The console shows nothing.

It works in Chrome, Firefox and IOS Safari.

You can see the simple page here: http://dalbydata.dk/meditation

IonDen commented 7 years ago

Hello, try to set volume to 1, maybe IE does not support volume more than 100%

IonDen commented 7 years ago

image

IonDen commented 7 years ago

There is an error, so yes, that should be bad volume value.

IonDen commented 7 years ago

In future update i will add a check in to plugin to avoid this.

soerendalby commented 7 years ago

Hi, now it works, great. I did not get anything in my console though. It also failed on Androids default browser and now it also work there. Perfect

Thanks and a happy new year.

IonDen commented 7 years ago

I will leave it open, because problem can be avoided. I will add a fix in next release. Happy new year!