CaRP Evolution Box
Web This Site

CaRP: Caching RSS Parser - Documentation


CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates

QuickTime

QuickTime is a plugin bundled with CaRP Evolution. Use it to display QuickTime, MPEG and MPEG-4 videos using the QuickTime browser plugin.
 
Installation:
To install QuickTime, put quicktime.php into the "plugins" folder inside the folder containing carp.php. (If no plugins folder exists, create one.)
 
Use:
To tell CaRP Evolution to use QuickTime, first, enter the following command into your webpage after "require_once '/path/to/carp.php';":
 
     CarpLoadPlugin('quicktime.php');

Then use the CarpConf function to change your iorder configuration setting to something containing "quicktime" -- for example:
 
     CarpConf('iorder', 'link,quicktime');

Because the QuickTime player loads all movies on the page whether they are played or not, it is recommended that you minimize the number of items you display from feeds with lots of videos attached, for example.

     CarpConf('maxitems', 3);
 
Configuration:
The QuickTime plugin has the following settings:

To set the above settings, use code like this:

$quicktimeconf['width']=400;
$quicktimeconf['height']=300;


Example Code:
Here's an example of the full code for a simple webpage that uses this plugin:

<html>
<head>
<title>QuickTime Videos</title>
</head>
<body>
<?php
require_once '/YOUR/PATH/TO/carp/carp.php';
CarpLoadPlugin('quicktime.php');
CarpConf('iorder','title,quicktime');
CarpConf('maxitems',3);
$quicktimeconf['width']=400;
$quicktimeconf['height']=300;
$quicktimeconf['after']='<hr>';
CarpCacheShow('http://example.com/videos.rss');
?>
</body>
</html>