mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Storing data on each audio tag if it is locked (ont yet loaded)
This commit is contained in:
parent
1c294d5921
commit
b4aaf81db7
1 changed files with 7 additions and 1 deletions
|
@ -110,8 +110,14 @@ var HTML5AudioFile = new Class({
|
||||||
audio.dataset.name = this.key + ('0' + i).slice(-2); // Useful for debugging
|
audio.dataset.name = this.key + ('0' + i).slice(-2); // Useful for debugging
|
||||||
audio.dataset.used = 'false';
|
audio.dataset.used = 'false';
|
||||||
|
|
||||||
if (!this.locked)
|
if (this.locked)
|
||||||
{
|
{
|
||||||
|
audio.dataset.locked = 'true';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
audio.dataset.locked = 'false';
|
||||||
|
|
||||||
audio.preload = 'auto';
|
audio.preload = 'auto';
|
||||||
audio.oncanplaythrough = this.onProgress.bind(this);
|
audio.oncanplaythrough = this.onProgress.bind(this);
|
||||||
audio.onerror = this.onError.bind(this);
|
audio.onerror = this.onError.bind(this);
|
||||||
|
|
Loading…
Reference in a new issue