diff -ruN plugins/content/flowplayer_j15_v1-0-1.php plugins/content/flowplayer.php --- plugins/content/flowplayer_j15_v1-0-1.php 2009-02-18 20:21:12.000000000 -0500 +++ plugins/content/flowplayer.php 2009-06-06 13:46:00.000000000 -0400 @@ -53,33 +53,55 @@ function plgContentFlowPlayer_replacer( &$matches ) { - $text = $matches[1]; - $text = ' - - '; + $urls = split(',', $matches[1]); + + if (sizeof($urls) > 1) + { + $autoPlay = 'false'; + $playlist = 'playlist: ['; + foreach($urls as $url) + { + $url = trim($url); + if ($url != '') + $playlist .= '{url: \''.$url.'\', autoPlay: '.$autoPlay.'},'."\n"; + $autoPlay = 'true'; + } + $playlist .= '],'; + } + else + { + $playlist = null; + } + + $text = ' + + '; return $text; -} \ No newline at end of file +}