ion.sound icon indicating copy to clipboard operation
ion.sound copied to clipboard

IndexSizeError in IE11

Open mbratukha opened this issue 9 years ago • 4 comments

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?

mbratukha avatar Aug 09 '15 22:08 mbratukha

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.

IonDen avatar Aug 10 '15 05:08 IonDen

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.

mbratukha avatar Aug 23 '15 13:08 mbratukha

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 });

tparkin avatar Jul 12 '18 03:07 tparkin

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

IonDen avatar Jul 19 '18 07:07 IonDen