IonDen / ion.sound

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

IndexSizeError in IE11 #54

Open mbratukha opened 9 years ago

mbratukha commented 9 years ago

The problem accures just before any content is rendered on the page.

image

The problem was caught in ion.sound ver. 3.0.0 and in the last ver. (3.0.6) it's stil here.

Any ideas?

IonDen commented 9 years ago

Hi, please describe your environment and maybe show example page for me to test. In my tests on IE9-Edge there was no such an error.

mbratukha commented 9 years ago

Hi, the problem was in value of volume variable. As you can see from screenshot, in my case it was set to 1.1. I don't know whether it possible or not, but any way it was so. When I set it to 1 everything starts to work fine in IE11.

tparkin commented 6 years ago

This problem still exists in IE 11. Setting the volume to 2.0 when loading a sound causes the error:

ion.sound({ sounds: [ { name: "water_droplet" } ], volume: 2.0, path: "https://s3.amazonaws.com/xxxxxx/sounds/", preload: true });

IonDen commented 6 years ago

@tparkin, yes. IE is supporting max volume of 1.0. I'm planning to add fix to round down the volume in that case.