11-26-2008, 10:15 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 119
Thanks: 21
|
sorry for the bad communication.
I would like to understand if Javascript would be the best thing to use in order to scan a loaded page for .mp3 files and then convert the .mp3 file into the 1px player.
I have been using Magpie parser and have this so far:
Code:
$items = array_slice($rss->items, 0, 500);
// Cycle through each item and echo
$i=1;
foreach ($items as $item ){
echo '<li><strong><a href="'.$item['link'].'">'.$item['title'].'</a></strong>' .$item['pubDate']. '<br />' .$item['description']. '
<object type="application/x-shockwave-flash" data="'.$item['link'].'" id="audioplayer'.$i.'" height="24" width="290">
<param name="movie" value="http://wwwtest.fs.fed.us/r5/lassen/podcasts/player.swf">
<param name="FlashVars" value="playerID='.$i.'&soundFile='.$item['link'].'">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
</li>';
$i++;
}
It doesn't like that so far though. Won't load the player for some reason. That is a PHP solution, but I was thinking about JS.
Thanks! 
|
|
|
|