You are here

function swftools_get_media_path in SWF Tools 5

Same name and namespace in other branches
  1. 6 swftools.module \swftools_get_media_path()
  2. 6.2 swftools.module \swftools_get_media_path()

Returns the media path relative to webroot. There is a setting 'swftools_media_url', if this is set, we assume the media is on a different server, and we don't change the path or check for the existence of the media. Otherwise we assume the path is inside the files directory.

8 calls to swftools_get_media_path()
flowplayer_swftools_flashvars in flowplayer/flowplayer.module
Implementation of swftools_flashvars hook. Return an array of flashvars.
swf in ./swftools.module
Return output, which might be embed markup, or pre-flash markup that includes the appropriate jQuery added to the <head>
swftools_flowplayer_mediaplayer_playlist in flowplayer/flowplayer.module
swftools_prepare_playlist_data in ./swftools.module
This function is a work in progress.
swftools_wijering4_mediaplayer_playlist in wijering4/wijering4.module

... See full list

File

./swftools.module, line 649

Code

function swftools_get_media_path() {
  $url = trim(variable_get('swftools_media_url', ''));
  if (!$url || $url == '') {
    return file_create_path('') . '/';
  }

  // A remote server is set, so we do not know anything about
  // the path between the base url and the file.
  return '';
}