getMediaCacheLocalURL Method

This method will return an url that you can use to access a cached media file.

var localURL = intel.xdk.cache.getMediaCacheLocalURL(url);

Description:

This method will return an url that you can use to access the cached media file. If the requested URL is not cached, the value returned will be "undefined".

Available Platforms:

Parameters:

  • url: The remote URL of the file that was cached.

    Returns:

  • localURL: The local URL of the cached file on the device itself.

    Example:

    
    var localurl = intel.xdk.cache.getMediaCacheLocalURL("http://myweb.com/image/logo.gif");
                
    
For more complete information about compiler optimizations, see our Optimization Notice.