EmbedPlugin
Embed MediaPlayer files in a TWiki page
Introduction
This is a plugin that you can use to embed MediaPlayer files in TWiki topics. See also related
TWiki:Plugins.ObjectPlugin
, which is more capable.
Syntax Rules
%EMBED{filename="string" width="number" height="number"}%
EmbedPlugin Global Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%, for example,
%EMBEDPLUGIN_SHORTDESCRIPTION%
- One line description, shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Embed MediaPlayer files in a TWiki page
- Debug plugin: (See output in
data/debug.txt)
Plugin Installation Instructions
Note: You need to install a MediaPlayer plugin on the browser to see the MediaPlayer content. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
- Download the ZIP file from the Plugin web (see below)
- Unzip
EmbedPlugin.zip in your twiki installation directory. Content: | File: | Description: |
data/TWiki/EmbedPlugin.txt | Plugin topic |
lib/TWiki/Plugins/EmbedPlugin.pm | Plugin Perl module |
pub/TWiki/EmbedPlugin/bells.mp3 | Plugin sample mp3 |
- Visit
configure in your TWiki installation, and enable the plugin in the {Plugins} section.
- Test if the plugin is correctly installed:
- A small MediaPlayer object below:
%EMBED{filename="https://twiki.org/p/pub/Plugins/EmbedPlugin/bells.mp3" width="80" height="60"}%
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins