Skip to content

Commit 8669947

Browse files
committed
URI + ? fix.
1 parent 0b5a439 commit 8669947

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

src/loader/Loader.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2483,6 +2483,11 @@ Phaser.Loader.prototype = {
24832483
{
24842484
videoType = url.type;
24852485
url = url.uri;
2486+
2487+
if (this.game.device.canPlayVideo(videoType))
2488+
{
2489+
return url;
2490+
}
24862491
}
24872492
else
24882493
{
@@ -2500,11 +2505,11 @@ Phaser.Loader.prototype = {
25002505
var extension = url.substr((Math.max(0, url.lastIndexOf(".")) || Infinity) + 1);
25012506

25022507
videoType = extension.toLowerCase();
2503-
}
25042508

2505-
if (this.game.device.canPlayVideo(videoType))
2506-
{
2507-
return url;
2509+
if (this.game.device.canPlayVideo(videoType))
2510+
{
2511+
return urls[i];
2512+
}
25082513
}
25092514
}
25102515

@@ -2538,6 +2543,11 @@ Phaser.Loader.prototype = {
25382543
{
25392544
audioType = url.type;
25402545
url = url.uri;
2546+
2547+
if (this.game.device.canPlayAudio(audioType))
2548+
{
2549+
return url;
2550+
}
25412551
}
25422552
else
25432553
{
@@ -2555,11 +2565,11 @@ Phaser.Loader.prototype = {
25552565
var extension = url.substr((Math.max(0, url.lastIndexOf(".")) || Infinity) + 1);
25562566

25572567
audioType = extension.toLowerCase();
2558-
}
25592568

2560-
if (this.game.device.canPlayAudio(audioType))
2561-
{
2562-
return url;
2569+
if (this.game.device.canPlayAudio(audioType))
2570+
{
2571+
return urls[i];
2572+
}
25632573
}
25642574
}
25652575

0 commit comments

Comments
 (0)