SoundCloud API: setVolume on audiomanager.js

We are having problems with the setVolume function when using the SoundCloud Javascript API.

Track:

Uncaught IndexSizeError: The index or size was negative or greater than the allowed value. audiomanager.js: 2 HTML5AudioPlayer.setVolume

We call this function on the sound object, as usual, and the values ​​we pass are between 0 and 100, which are indicated as correct.

The problem started a few hours ago, and we did not make any changes to our code, so it seems that the version of the audio manning that we extract from soundcloud has changed today.

Any idea?

thanks

+3
source share
1 answer

, SoundCloud JavaScript SDK . . SDK HTML5AudioPlayer . , , 0 1, 0 100 "" . sound.setVolume(0.5) sound.setVolume(50). , "whileplaying" .

, SoundCloud / SDK . https://connect.soundcloud.com/audiomanager/audiomanager.js, .

+3

All Articles