diff -urp ../media_archive/providers/emaudio/archive_audio.inc ./providers/emaudio/archive_audio.inc --- ../media_archive/providers/emaudio/archive_audio.inc 2009-07-27 01:00:16.000000000 -0400 +++ ./providers/emaudio/archive_audio.inc 2010-03-06 13:30:13.744000000 -0500 @@ -234,7 +234,22 @@ function emaudio_archive_audio_audio($em */ function theme_emaudio_archive_audio_flash($embed, $width, $height, $field, $item, $node, $autoplay) { $output = ''; + + if ($item) { + /* Use Flowplayer module if available */ + if (module_exists('flowplayer')) { + $config = array( + 'clip' => array( + 'autoPlay' => $clipautoplay, + ), + 'playlist' => $item['data']['playlist'] + ); + $output = theme('flowplayer', $config, 'audio', + array('style' => 'width:' . $width . 'px; height:' . $height . 'px;')); + return($output); + } + $flowplayerplaylist = _archive_audio_flowplayer_playlist($item['data']['playlist']); $controlplaylist = (count($item['data']['playlist'])>1) ? "true" : "false"; $clipautoplay = $autoplay ? 'true' : 'false'; diff -urp ../media_archive/providers/emvideo/archive.inc ./providers/emvideo/archive.inc --- ../media_archive/providers/emvideo/archive.inc 2009-12-07 19:45:15.000000000 -0500 +++ ./providers/emvideo/archive.inc 2010-03-06 14:21:36.414000000 -0500 @@ -275,6 +275,26 @@ function emvideo_archive_embedded_link($ function theme_emvideo_archive_flash($item, $width, $height, $autoplay) { $output = ''; if ($item['embed']) { + /* Use Flowplayer module if available */ + if (module_exists('flowplayer')) { + $config = array( + 'clip' => array( + 'autoPlay' => $clipautoplay, + ), + 'playlist' => array( + array( + 'url' => $item['data']['thumbnail'], + 'autoPlay' => true, + 'scaling' => 'fit' ), + array( + 'url' => $item['data']['url'], + 'autoPlay' => false, + 'scaling' => 'fit' ), + ), + ); + $output = theme('flowplayer', $config); + return($output); + } $output = <<