Soundlets v1.4 is out! Various security issues are fixed, and you might need to convert some of your files.
Changes:
- XSS (Cross Site Scripting) is no longer possible. As a result, most previous files no longer work. Please convert all your soundboard.json files into the new format below.
Converting your files
Files created before the v1.4 update might not work in the new version. To update your files, locate the "url"
key in your JSON. Remove everything but the snd.src
value and the snd.playbackRate
values. Replace them with "url":"snd.src value"
and "speed":playbackRate value
, where snd.src
is the URL of the audio file and playbackRate value
is the integer/number of speed. If you do not provide the playbackRate
it will default to 1
.
Update: The way I did it was opening Notepad, going to replace, set it to find javascript: var snd = new Audio();snd.src = '
and replace it with nothing (deleting it). Then setting find to '; snd.playbackRate = 1; function PlaySnd() {snd.play();}PlaySnd()
and replacing it with nothing (deleting it, as well). This does not keep the speed aspect of the sound, but none of my soundboards really use it so I didn't care to do that. If you find a better way to do it, please tell me on email or scratch or somewhere.
No comments:
Post a Comment