Podcast is a plugin bundled with CaRP Evolution 4.0.8 and higher.
It works with the 1 Pixel Out Audio Player to display a Flash-powered audio player for each MP3 in a podcast feed.
CES has officially begun and we discuss a slew of offerings from the show floor, as well as the Steve Ballmer keynote. Also, Tom is offered the chance to record his voice for TomTom GPS devices. That's a lot of Tom!
We're coming to you from CES 2009 in Las Vegas, Nevada and it's all about Netbooks today. I'm sure we'll get more buzz about 3D TVs and more later this week. Also, Ellie doesn't like it when we call out the title of the show, but that makes it easier for Jason to find them for his special edition! (And please excuse a bit of distortion in today's episode. Sorry! -Jason)
Buzz Out Loud 885: CES 2009 preview 6 Jan 2009 at 10:00am
How about a little preCES prediction? We talk about the things we expect to see at this year's Consumer Electronics Show in Las Vegas.
Buzz Out Loud 884: Hormonal beef 5 Jan 2009 at 1:31pm
In today's episode, Natali offers her hormones to help out Steve Jobs, but she doesn't do it on the actual show, so we have to tell you about it now. The actual news is that the mystery behind Steve's absence from the Steve-note has been revealed: a hormonal imbalance that's causing massive weight loss. Also, Viacom goes wingnut crazy. Hear all about it!
Installation:
To install Podcast:
If "podcast.php" is not already found in your "plugins" folder, upload it to that folder.
If you have a WordPress blog, you may wish to install it in your WordPress plugins directory.
Otherwise, upload just audio-player.js and player.swf to your webserver.
You can put them anywhere as long as they're web-accessible and both files are in the same folder.
Use:
To tell CaRP Evolution to use Podcast:
Enter the following command into your webpage after "require_once '/path/to/carp.php';":
CarpLoadPlugin('podcast.php');
Tell the plugin where audio-player.js and player.swf are located by adding a line of code like this:
$podcastcarpconf['player-path']='/blog/wp-content/plugins/audio-player/';
The path should end with "/".
If the files are not on the same server as the page where you're displaying the podcast,
enter the full URL of the folder.
Otherwise, you can enter just the path as in the example above.
By default, the plugin adds a "<br />" (line break) tag after the podcast player.
If you wish to change that, or add something before the podcast player,
use CaRP's "bipodcast" and "aipodcast" settings to specify what to display.
Be sure to set those settings after loading the plugin.
If desired, use the settings below to customize your podcast players.
Important Notes:
This plugin is compatible only with CarpShow and CarpCacheShow, not with CarpFilter, CarpCacheFilter, CarpGroupFilter, CarpAggregate, and CarpInterleave.
If you wish to use it to sort aggregated feeds, create a script that outputs the aggregated feed in RSS 2.0 format using the RSS 2.0 theme,
and then use this plugin with CarpShow or CarpCacheShow to display the output of that script.
The 1 Pixel Out Audio Player (and thus this plugin) is compatible only with MP3 audio files.
The 1 Pixel Out Audio Player (and thus this plugin) is compatible only with files
with sample rates of 11.025kHz, 22.050kHz and 44.100kHz.
Files with other sample rates will play incorrectly.
Configuration:
The Sort plugin has the following settings, which are members of the array $sortcarpconf.
In most cases, you'll use the functions listed above to control these settings:
player-path:
The path to the 1 Pixel Out Audio Player as shown above.
check-for-mp3:
If set to 1 (the default),
the plugin tries to verify that the audio file is an MP3 by checking for "mp3" (not case sensitive) in the filename.
If "mp3" does not appear in the filename, no audio player will be displayed.
If set to 0, it will create an audio player for any audio enclosure, whether the filename contains "mp3" or not.
bg:
The background color of your page in the place where the audio player will be displayed.
Specify this an all colors as six digit hexidecimal values (0 - 9 and A - F).
player-settings:
This is an array of colors for each part of the audio player as shown here:
Set these settings like this:
$podcastcarpconf['player-settings']['leftbg']='0033CC';
bg: The background of the player when it's open
leftbg: The background of the left side of the player
lefticon: The icon on the left side
rightbg: The background of the right side when the mouse isn't over it
rightbghover: The background of the right side when the mouse is over it
righticon: The icon on the right side when the mouse isn't over it
righticonhover: The icon on the right side when the mouse is over it
text: The text inside the player
slider: The slider "thumb" in the player
track: The inside of the part of the track that has been loaded but not played
border: The border of the track
loader: The inside of the part of the track that has been played
Example Code:
<?php
require_once '/YOUR/PATH/TO/carp/carp.php';
CarpLoadPlugin('podcast.php');
$podcastcarpconf['player-path']='/blog/wp-content/plugins/audio-player/';
$podcastcarpconf['bg']='FFFFFF'; // White page background
$podcastcarpconf['player-settings']['bg']='FFFFCC'; // Yellow player background
$podcastcarpconf['player-settings']['track']='006633'; // Dark green track
CarpCacheShow('http://example.com/podcast.rss');
?>