Richard Davey
d5296287b1
Fixed url type
2020-07-14 09:03:07 +01:00
Richard Davey
feaaf04c40
Merge pull request #5131 from samme/fix/loader-file-state
...
Set file states FILE_LOADING and FILE_LOADED
2020-07-13 12:00:55 +01:00
Richard Davey
4dfe40fa9a
Merge pull request #5126 from samme/fix/file-url
...
Fix TypeError when loading JSON objects in `url` argument
2020-07-13 11:49:37 +01:00
samme
ee957757bf
Docs: correct type for Phaser.Loader.File#url
2020-05-06 08:53:47 -07:00
samme
1f21a7d3be
Fix url type check
...
Fixes #5125
2020-05-02 12:36:19 -07:00
samme
9965c81c66
Set states FILE_LOADING and FILE_LOADED
2020-05-02 10:01:38 -07:00
aucguy
ff886b001e
Fix loading audio and video with blob urls
...
Passing a blob url as the second parameter to `this.load.audio` or
`this.load.video` would cause Phaser to load a different url.
Additionally, `this.load.path` would incorrectly be prepended to the
url.
`AudioFile.getAudioURL` and `VideoFile.getVideoURL`, are expected to
return an object with two properties; url and type. However when passed
a blob url they return a string. The return value's
`url` property is inspected to get the url. For strings' the property is
`undefined`. If the url property is undefined then a url derived from
the asset key is used instead.
2020-03-22 22:21:27 -05:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
ae1b5a664f
Loader Types
2019-05-09 12:04:54 +01:00
Richard Davey
c9bdb83941
GameObject and Loader typedefs
2019-02-13 13:57:59 +00:00
Richard Davey
56dfdb7a74
More jsdoc global fixes
2019-02-12 12:14:26 +00:00
Richard Davey
facd0d0ca4
Better handling of responseURL
re #4309
2019-01-24 13:55:27 +00:00
Richard Davey
2a108339f0
Lint fix
2019-01-23 23:17:33 +00:00
Richard Davey
50e292e363
Merge pull request #3864 from Ithamar/patch-1
...
Allow XHR status 0 as success too
2019-01-23 23:04:27 +00:00
Richard Davey
8b9feb8a82
Added all of the Loader Events.
2019-01-17 13:04:26 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Ithamar R. Adema
7d84b54239
Only allow XHR status 0 for local file:// URLs
...
Since 0 can also be an error situation, limit the amount we okay it.
2018-07-25 15:00:07 +02:00
Ithamar R. Adema
44f9b10e8c
Allow XHR status 0 as success too
...
Normally only status 200 would be accepted as success, but 0 is returned when a file is loaded from the local filesystem (file://). This happens for example when opening the index.html of a (Phaser) game in a browser directly, or, as it turns out, when using Cordova on iOS.
This fixes #3464
2018-07-25 09:54:50 +02:00
Richard Davey
7aa46657c2
Tidying up jsdocs and changing float to number
2018-06-26 23:19:14 +01:00
Richard Davey
28851ff69b
Use hyphens instead of underscores. Fix #3751
2018-06-14 13:30:33 +01:00
Richard Davey
f0348834c6
The Loader now uses an update loop to release new files to the queue, rather than doing it during the async hell-hole that was the inflight iterator. Fix #3705 .
2018-06-12 16:20:55 +01:00
Richard Davey
ee2c0619d8
Updated jsdocs
2018-05-08 13:30:33 +01:00
Richard Davey
1cb68a9895
New per file event dispatched.
2018-05-08 01:12:20 +01:00
Richard Davey
8e7df2a234
You can now set the X-Requested-With
header in the XHR requests by specifying it in your XHRSettings config, either in the game, scene or file configs.
2018-05-04 17:33:48 +01:00
Richard Davey
faef3449f5
Added jsdocs
2018-05-04 16:00:02 +01:00
Richard Davey
9b7d6d0254
Added linkFile support back in, so images can bind to other data.
2018-05-04 14:31:43 +01:00
Richard Davey
04584ad191
Renamed LinkFile to MultiFile
2018-05-04 11:33:51 +01:00
Richard Davey
2859e05d74
Removed logs
2018-05-04 02:39:15 +01:00
Richard Davey
d40b9c2a10
Fixed call
2018-05-03 17:12:44 +01:00
Richard Davey
04487f7510
Added pendingDestroy method and prefix to the key
2018-05-03 00:36:29 +01:00
Richard Davey
77dd16dc8d
Removed callbacks and added new onProcess methods
2018-05-02 17:24:25 +01:00
Richard Davey
e6a3747291
loader.path doesn't need to be in the config. Added prefix.
2018-05-02 13:11:17 +01:00
Richard Davey
9a974514ff
Added new LinkFile class and updated other file types to use it.
2018-04-27 18:44:12 +01:00
Richard Davey
038bbcc7bc
Fixed the remaining file types.
2018-04-25 23:16:17 +01:00
Richard Davey
75a49d284c
Added hasCacheConflict and addToCache methods/
2018-04-25 17:13:06 +01:00
Richard Davey
b0544c73b8
jsdoc fixes
2018-04-18 13:29:22 +01:00
Richard Davey
747f09af86
jsdoc fixes
2018-03-28 15:04:09 +01:00
orblazer
0c1ced8d86
Fix "object" types on Loader
2018-03-21 13:03:14 +01:00
orblazer
7fba122321
Fix "any" types
2018-03-20 17:15:49 +01:00
orblazer
44103dc475
Fix remaining multiple types
2018-03-20 16:12:42 +01:00
orblazer
fa13b597e3
Add more callbacks
2018-03-19 23:08:05 +01:00
Richard Davey
625394a24c
Don't reset the callbacks unless xhrLoader is set
2018-03-16 17:00:45 +00:00
Richard Davey
ae1c91cf6a
eslint fixes
2018-03-05 01:40:11 +00:00
Richard Davey
de9cfb6ee2
Merge pull request #3234 from nkholski/master
...
load.plugin now accepts class as an argument besides an url-string
2018-02-28 20:50:32 +00:00
samme
2b309c06e5
Elevate console message for loading data URIs
2018-02-22 09:28:02 -08:00
Richard Davey
50dac412be
eslint fixes and console removal
2018-02-16 19:08:50 +00:00
Niklas Berg
6dde7002dc
fixed formatting
2018-02-15 18:11:55 +01:00
Niklas Berg
6a77790aef
load.plugin now accepts class as an argument besides an url-string
2018-02-14 23:35:05 +01:00