CaRP: Caching RSS Parser - Documentation
is a plugin bundled with CaRP Evolution.
Use it to display QuickTime, MPEG and MPEG-4 videos using the QuickTime browser plugin.
To install QuickTime, put quicktime.php into the "plugins" folder inside the folder containing carp.php.
(If no plugins folder exists, create one.)
To tell CaRP Evolution to use QuickTime, first, enter the following command into your webpage after "require_once '/path/to/carp.php';":
Then use the CarpConf function to change your iorder configuration setting to something containing "quicktime" -- for example:
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.
The QuickTime plugin has the following settings:
- before: Controls what HTML code or text is displayed before each video.
This setting is empty by default.
- after: Controls what HTML code or text is displayed after each video.
The default value for this setting is "<br />" (an HTML line break tag).
- height: Specifies the height, in pixels, of the video player.
The default is 240.
Be sure to set this equal to or greater than the actual height of the video -- QuickTime will not scale the video.
- width: Specifies the width, in pixels, of the video player.
The default is 320.
Be sure to set this equal to or greater than the actual width of the video -- QuickTime will not scale the video.
- autoplay: Specifies whether the video should begin playing automatically when the page is loaded.
The default value is "false".
You should only set this to "true" if you are only displaying a single video
(for example, if "maxitems" is set to 1,
or you are using the FlexFormat plugin to remove "quicktime" from the "iorder" setting after the first item).
- controller: Specifies whether video controls (a play button, etc.) should be displayed.
The default is "true".
When set to "true", 16 pixels are added to the "height" setting to accomodate the controls.
If set to false, you should either display only 1 video and set it to autoplay,
or include a note telling the visitor to double-click the video to start playing.
- background: The background color to be displayed around the video
if the width and height settings are greater than the dimensions of the video.
The default is "#ffffff" (ie. white).
To set the above settings, use code like this:
Here's an example of the full code for a simple webpage that uses this plugin: