addVideo(key, url, data, isBlob)
Adds a Video file into the Cache. The file must have already been loaded, typically via Phaser.Loader.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key that this asset will be stored in the cache under. This should be unique within this cache. |
url | string | The URL the asset was loaded from. If the asset was not loaded externally set to |
data | object | Extra video data. |
isBlob | boolean | True if the file was preloaded via xhr and the data parameter is a Blob. false if a Video tag was created instead. |
- Source code: loader/Cache.js (Line 533)
Please login to continue.