function _jplayer_get_swf in jPlayer 7.2
Locates SWF file.
Return value
string SWF file path.
1 call to _jplayer_get_swf()
- _jplayer_js_attach in ./
jplayer.module - Add core JS and CSS needed for jPlayer instances.
File
- ./
jplayer.module, line 474 - Provides an HTML5-compatible with Flash-fallback audio player.
Code
function _jplayer_get_swf() {
$path = libraries_get_path('jplayer');
$file = '/jquery.jplayer.swf';
$full = '/' . $path . $file;
if (!file_exists($full)) {
$path .= '/dist/jplayer';
$dist = $path . $file;
if (file_exists($dist)) {
return $dist;
}
}
return $full;
}