r4 - 04 Feb 2008 - 07:41:48 - PeterThoenyYou are here: TWiki >  Plugins Web > CortadoPlugin
Tags:
component 1 Add my vote for this tag, media 1 Add my vote for this tag, visualization 1 Add my vote for this tag, , create new tag

CortadoPlugin

This Plugin allows one to add videos in a topic using the Cortado Java Applet.

Syntax Rules

  • %CORTADO{"filename" [web="Web"] [topic="Topic"] [width="int"] [height="int"] [CORTADO_OPTIONS]}%

CORTADO_OPTIONS comes from the Cortado README:

Option: Type: Default: Description:
seekable boolean false Whether or not you can seek in the file. For live streams, this should be false; for on-demand files, this can be true.
duration int   Length of clip in seconds. Needed when seekable is true, to allow the seek bar to work.
keepAspect boolean true Try to keep the natural aspect of the video when resizing the applet window.
video boolean true Use video. When not using video, this property will not create resources to play a video stream.
audio boolean true Use audio. When not using audio, this property will not create resources to play an audio stream.
statusHeight int 12 The height of the status area
autoPlay boolean true Automatically start playback
showStatus enum (auto,show,hide) auto Controls how to make the status area visible. auto will show the status area when hovered over with the mouse. hide will only show the status area on error. show will always show the status area.
hideTimeout int 0 Timeout in seconds to hide the status area when showStatus is auto. This timeout is to make sure that the status area is visible for the first timeout seconds of playback so that the user can see that there is a clickable status area too.
bufferSize int 200 The size of the network buffer, in KB. A good value is max Kbps of the stream * 33
bufferLow int 10 Percentage of low watermark for buffer. Below this, the applet will stop playing and rebuffer until the high watermark is reached.
bufferHigh int 70 Percentage of high watermark for buffer. At startup or when rebuffering, the applet will not play until this percentage of buffer fill status is reached.
userId string   user id for basic authentication.
password string   password for basic authentication.
debug int 3 debug level, 0 - 4. Defaults to 3. Output goes to the Java console.

Examples

  • %CORTADO{"video.ogg" web="Main" topic="MyTopic" width="320" height="240" autoPlay="false"}%
  • %CORTADO{"video.ogg" seekable="true" showStatus="show" audio="false" duration="272"}%

Plugin Settings

Plugin settings are stored in TWiki configuration.

$TWiki::cfg{Plugins}{CortadoPlugin}{DEBUG} = 1;
$TWiki::cfg{Plugins}{CortadoPlugin}{CortadoPath} = "/cortado-ovt-stripped-0.3.jar";

You may change them in the configure script.

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.

  • Download the ZIP file from the Plugin Home (see below)
  • Unzip CortadoPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/CortadoPlugin.txt Plugin topic
    data/TWiki/CortadoPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/CortadoPlugin.pm Plugin Perl module
    lib/TWiki/Plugins/CortadoPlugin/Config.spec Plugin Config spec
  • Configure the Plugin:
    • TWiki 4.0 and up: Run the configure script to enable the Plugin
    • Change the Plugin settings as needed
  • Test if the installation was successful:

Note: You also need to install the Cortado applet in the server. Binaries can be downloaded from http://www.flumotion.net/jar/cortado/. Sources can be found in http://www.flumotion.net/src/cortado/. The applet should be uploaded to the TWiki web server and its absolute URL path configured in LocalSite.cfg using the variable pointed above as CortadoPath in the section Plugin Settings.

Plugin Info

This work has been possible with the help of the following sponsors:

Plugin Author: TWiki:Main.ThadeuCascardo
Copyright: © 2007, 2008, TWiki:Main.ThadeuCascardo
License: GPL (GNU General Public License)
Plugin Version: 15 Jan 2008 (V1.001)
Change History:  
17 Dec 2007: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: Cortado
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/CortadoPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/CortadoPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/CortadoPluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

-- TWiki:Main.ThadeuCascardo - 17 Dec 2007

Topic attachments
I Attachment Action Size Date Who Comment
elsemd5 CortadoPlugin.md5 manage 0.2 K 15 Jan 2008 - 21:37 ThadeuCascardo  
ziptgz CortadoPlugin.tgz manage 14.2 K 15 Jan 2008 - 21:37 ThadeuCascardo  
zipzip CortadoPlugin.zip manage 15.9 K 15 Jan 2008 - 21:36 ThadeuCascardo  
elseEXT CortadoPlugin_installer manage 31.8 K 15 Jan 2008 - 21:37 ThadeuCascardo  
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo