This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

Media Player Plugin#


This plugin provides the embedded media player in your wiki page. Latest version support the media files which played by Mediaplayer or Quicktime player.

Only tested and worked normally with the major browsers -- IE 6, Firefox 1.0 and Safari 2.0, others may work, but not sure.

Version 2 Released!#

  • Added the Quicktime Player support. User could specify which player they'd like to use to player media file. Of course, some media file, such as .mov or .wmv, only supported by one.


Please take a look at There're three embedded video on the wiki page.

More demo on jspwiki 2.2 and 2.4:

Usage and Parameters#

You could use the plugin tag like this:

[{tw.idv.ecoast.plugin.Mediaplayer src='fileName.wmv' playertype='mediaplayer' idth=320 height=240 caption='test1' control=1 autostart=0 autorewind=1 playcount=0}]

- or -

[{tw.idv.ecoast.plugin.Mediaplayer src='' playertype='quicktime' width=320 height=240 caption='test1' control=1 autostart=0 autorewind=1 playcount=0}]

  • src = media file name, attachment could be acceptable
  • playertype = which player: "mediaplayer" or "quicktime"
  • width, height = the dimension of the embedded media displayed
  • caption = the caption of the media (will shown in the below of the media player)
  • control = If it shows control bar or not.
Show1 true
Hide0 false
  • autostart = If it start to play automatically or not.
auto1 true
manual (click to play)0 false
  • autorewind = If it rewinds od not when play ends.
auto rewind1 true
not rewind(play once)0 false
  • playcount = How many times it will play. 0 means always play.

Download and Installation#

If you'd like to allow wiki user adding embedded video in the pages, you could download the MediaPlayerPlugin package(info), then save it into your lib directory (the same place which your JSPWiki exists). Re-reload or re-start your service.

Source Code#

I attached the source code file for your reference. I modified the source code CorePlugin: Image to become this plugin.

The code is really simple and quite easy to understand, so that I don't put too many comments.

Only one file you need to build the plugin in your wiki system.

java source code(info)

Contact Me#

If you have any question, please let me know. I'm Geoffrey


--AnonymousCoward, 18-May-2006

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
java 11.0 kB 3 04-Feb-2007 08:44
mediaplayer.jar 2.7 kB 1 10-May-2005 15:03 Geoffrey
mediaplayer2.jar 3.4 kB 2 04-Feb-2007 08:46
« This particular version was published on 21-May-2006 11:05 by Geoffrey.