Storing data on each audio tag if it is locked (ont yet loaded)

This commit is contained in:
Pavle Goloskokovic 2018-04-14 18:46:09 +02:00
parent 1c294d5921
commit b4aaf81db7

View file

@ -110,8 +110,14 @@ var HTML5AudioFile = new Class({
audio.dataset.name = this.key + ('0' + i).slice(-2); // Useful for debugging
audio.dataset.used = 'false';
if (!this.locked)
if (this.locked)
{
audio.dataset.locked = 'true';
}
else
{
audio.dataset.locked = 'false';
audio.preload = 'auto';
audio.oncanplaythrough = this.onProgress.bind(this);
audio.onerror = this.onError.bind(this);