Interface MediaAssetStore


public interface MediaAssetStore
Interface for objects responsible for loading multiple media assets in bulk. Loading media is typically done during application startup, though larger applications can also choose to load media in "blocks" based on where in the application they're needed. Using a MediaAssetStore is preferred to loading media assets directly in the scene, since this avoids media files from being reloaded every time the scene is started.
  • Method Details

    • loadMedia

      void loadMedia(MediaLoader mediaLoader, Network network)
      Loads all media assets managed by this MediaAssetStore. Also provides network access in case some of the media needs to be loaded from remote locations.

      To avoid loading the same media files multiple times, this method will only be called when isLoaded() returns false.

      Throws:
      MediaException - If one of more of the media assets fails to load.
    • isLoaded

      boolean isLoaded()