Skip to content

Commit fc55306

Browse files
committed
Merge pull request phaserjs#2236 from milkey-mouse/fix-datauri-error
Fix issue phaserjs#2234: Errors in getAudioURL() and getVideoURL() when using blob: or data: URIs
2 parents c21c317 + 0c2e8d8 commit fc55306

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/loader/Loader.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,8 +2464,8 @@ Phaser.Loader.prototype = {
24642464

24652465
if (url.uri) // {uri: .., type: ..} pair
24662466
{
2467-
url = url.uri;
24682467
videoType = url.type;
2468+
url = url.uri;
24692469
}
24702470
else
24712471
{
@@ -2487,7 +2487,7 @@ Phaser.Loader.prototype = {
24872487

24882488
if (this.game.device.canPlayVideo(videoType))
24892489
{
2490-
return urls[i];
2490+
return url;
24912491
}
24922492
}
24932493

@@ -2519,8 +2519,8 @@ Phaser.Loader.prototype = {
25192519

25202520
if (url.uri) // {uri: .., type: ..} pair
25212521
{
2522-
url = url.uri;
25232522
audioType = url.type;
2523+
url = url.uri;
25242524
}
25252525
else
25262526
{
@@ -2542,7 +2542,7 @@ Phaser.Loader.prototype = {
25422542

25432543
if (this.game.device.canPlayAudio(audioType))
25442544
{
2545-
return urls[i];
2545+
return url;
25462546
}
25472547
}
25482548

0 commit comments

Comments
 (0)