Configuring Wimpy Player

8 posts by 2 authors in: Forums > CMS Builder
Last Post: January 15, 2010   (RSS)

By drewh01 - January 14, 2010

A couple things:

1.) I am trying to get the Wimpy Player ( wimpyplayer.com ) to work with the CMS builder upload and having issues getting the XML output file to work properly.

Here is the playlist.xml.php file:
http://www.sedonaeliteproperties.com/audio/playlist.xml.php

As you can see it is only outputting one track even though I have 4 loaded in the CMS upload.

Here is the direct flash link: http://www.sedonaeliteproperties.com/audio/wimpy.swf

Ideas?

Here is my playlist.xml.php code:


<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<?php

require_once "/home/sedonael/public_html/cmsAdmin/lib/viewer_functions.php";

list($audioRecords, $audioMetaData) = getRecords(array(
'tableName' => 'audio',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$audioRecord = @$audioRecords[0]; // get first record

// show error message if no matching record is found
if (!$audioRecord) {
header("HTTP/1.0 404 Not Found");
print "Record not found!";
exit;
}

?>


<playlist>

<?php foreach ($audioRecord['audio_upload'] as $upload): ?>
<item>
<filename><?php echo $upload['filename'] ?></filename>
<title><?php echo $upload['info1'] ?></title>
</item>
<?php endforeach ?>

</playlist>



2.) My other issue is trying to figure out why I cannot get the player to load:

http://www.sedonaeliteproperties.com/audio.php


Here is that code:

<!-- START WIMPY PLAYER CODE -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="825" height="350" id="wimpy4803">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://www.sedonaeliteproperties.com/audio/wimpy.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="FFFFFF" />
<param name="flashvars" value="wimpyReg=Mm4lMkY3OWxGWCUzRSU3REVRSlclNjBmJTdDaCUzQmdLV0N0JTIxJTVDQ2ZQTENBeWthN2ozUSU0MCU0MCU0MEw4&wimpyApp=http://www.sedonaeliteproperties.com/audio/playlist.xml.php&wimpySkin=skin_itunes.xml&displayDownloadButton=yes&forceDownload=no&startPlayingOnload=yes&autoAdvance=no" />
<embed src="http://www.sedonaeliteproperties.com/audio/wimpy.swf" flashvars="wimpyReg=Mm4lMkY3OWxGWCUzRSU3REVRSlclNjBmJTdDaCUzQmdLV0N0JTIxJTVDQ2ZQTENBeWthN2ozUSU0MCU0MCU0MEw4&wimpyApp=http://www.sedonaeliteproperties.com/audio/playlist.xml.php&wimpySkin=skin_itunes.xml&displayDownloadButton=yes&forceDownload=no&startPlayingOnload=yes&autoAdvance=no" loop="false" menu="false" quality="high" width="825" height="350" scale="noscale" salign="lt" name="wimpy4803" align="center" bgcolor="FFFFFF" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- END WIMPY PLAYER CODE -->

Re: [drewh01] Configuring Wimpy Player

By Chris - January 14, 2010

Hi drewh01,

The request for http://www.sedonaeliteproperties.com/skin_itunes.xml is coming back with a 404, could that be causing a problem?
All the best,
Chris

Re: [chris] Configuring Wimpy Player

By drewh01 - January 14, 2010

Oy - I think I have been staring at monitors too long today.

Yes, correcting that skin xml path helped to solve issue #2

Now I just need to see why the tracklist is not loading.

Re: [drewh01] Configuring Wimpy Player

By drewh01 - January 15, 2010

I removed a "where" line in the header and I can now get the first mp3 to appear and play in the player but I cannot for the life of me figure out what I am doing wrong as the other 3 mp3 files are not appearing.

http://www.sedonaeliteproperties.com/audio/playlist.xml.php

<?php header('Content-type: application/xml; charset=utf-8'); ?><?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>

<?php

require_once "/home/sedonael/public_html/cmsAdmin/lib/viewer_functions.php";

list($audioRecords, $audioMetaData) = getRecords(array(
'tableName' => 'audio',
'limit' => '1',
));
$audioRecord = @$audioRecords[0]; // get first record

?>

<playlist>
<?php foreach ($audioRecord['audio_upload'] as $upload): ?>
<item>
<filename>/audio/<?php echo $upload['filename'] ?></filename>
<title><?php echo $upload['info1'] ?></title>
</item>
<?php endforeach ?>

</playlist>

Re: [drewh01] Configuring Wimpy Player

By Chris - January 15, 2010

Hi drewh01,

'limit' => '1',

This line will limit the number of records returned by getRecords() to 1. Try removing it?
All the best,
Chris

Re: [drewh01] Configuring Wimpy Player

By Chris - January 15, 2010

Wait, are your 12 mp3s uploaded into one record? Are you sure you're getting the correct record? The code you have will grab the first record and list all the uploads within it.

If you instead want to list all uploads in all your records, you can do something like this:

<?php header('Content-type: application/xml; charset=utf-8'); ?><?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>

<?php

require_once "/home/sedonael/public_html/cmsAdmin/lib/viewer_functions.php";

list($audioRecords, $audioMetaData) = getRecords(array(
'tableName' => 'audio',
));

?>

<playlist>
<?php foreach ($audioRecords as $record): ?>
<?php foreach ($record['audio_upload'] as $upload): ?>
<item>
<filename>/audio/<?php echo $upload['filename'] ?></filename>
<title><?php echo $upload['info1'] ?></title>
</item>
<?php endforeach ?>
<?php endforeach ?>
</playlist>


Does that help? Please let me if you have any questions.
All the best,
Chris

Re: [chris] Configuring Wimpy Player

By drewh01 - January 15, 2010

Yep! That was it!

thanks!!!