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

File name with reserved URL characters is not supported (FF 40 only)

Open mbratukha opened this issue 9 years ago • 5 comments

I got this bug when had tried to use a file with name test#.mp3. Symbol # should be replaced by %23 to make a request to the server.

mbratukha avatar Mar 31 '15 22:03 mbratukha

Fixed in 3.0.1

IonDen avatar May 29 '15 06:05 IonDen

The bug is still here, but only for Friefox (at least in ver. 40.0.2).

The file loading goes fine: image

But then it suddenly says that there is no such sound: image

Any adeas?

mbratukha avatar Aug 23 '15 15:08 mbratukha

Hi, i will try o check this in the end of the week.

IonDen avatar Aug 24 '15 10:08 IonDen

I sliced away characters from my array to get the code working on a PC.

Here is a sample of my code.

It might give you a few ideas on fixing your problem.

var thearray1 = Version[item[itemnumber]][3][0];

//remove last 4 characters
var withoutChars = thearray1.slice(0, -4);  

//remove first 12 characters
var withoutChars2 = withoutChars.slice(12);

ion.sound({sounds:[{name: withoutChars2}], volume: 1.0, path:"/ion/sounds/", preload: false});
ion.sound.play(encodeURIComponent(withoutChars2));

a4jp-com avatar Oct 06 '16 08:10 a4jp-com

Whoops. I just saw this was from a year ago. I'll keep the post here though. It might help someone.

a4jp-com avatar Oct 06 '16 08:10 a4jp-com