Media Player Plugin#

Introduction#

This plugin provides the embedded media player in your wiki page. Latest version support the media files which played by Windows 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.

Compatibility#

I have tested on JSPWIki verison 2.2, 2.4 and 2.6, it works well.

Version 2.1 Released!#

  • Fixed the parameter misspelled issue, and tested compatibility with 2.4.91. Thanks for Ron Atkins' kindly help. (v2.0 to v2.1)
  • Support both the Windows Mediaplayer and Quicktime Player now. User could specify which player they'd like to use to player media file. Of course, some format of media files, such as .mov or .wmv, only supported by one of them. (v2.0)

Demo#

Please take a look at http://www.nlica.org.tw/wiki/Wiki.jsp?page=Synyi94Plan. There're three embedded video on the wiki page.

More demo on jspwiki 2.6 (sandbox)

Usage and Parameters#

You could use the plugin tag like this:


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

- or -


[{tw.idv.ecoast.plugin.Mediaplayer src='fileName.mov' playertype='quicktime' width=320 height=240 caption='test1' control=true autostart=false autorewind=true 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
  • movieheight, moviewidth = the dimension of the display screen
  • caption = the caption of the media (will shown in the below of the media player)
  • control = If it shows control bar or not.
mediaplayerquicktime
Show1 true
Hide0 false
  • autostart = If it start to play automatically or not.
mediaplayerquicktime
auto1 true
manual (click to play)0 false
  • autorewind = If it rewinds od not when play ends.
mediaplayerquicktime
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.jar exists). Re-reload or re-start your j2ee container.

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


cool!

--AnonymousCoward, 18-May-2006


Dear Geoffery, does your wonderful video plugin work with 2.3.72?

Thanks

--AnonymousCoward, 24-May-2006


Tags: Video, Videos, Streaming

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
Mediaplayer.java 11.0 kB 3 04-Feb-2007 08:44 61.219.62.7
jar
mediaplayer.jar 2.7 kB 1 10-May-2005 15:03 Geoffrey
jar
mediaplayer2.jar 3.4 kB 2 04-Feb-2007 08:46 61.219.62.7
« This page (revision-17) was last changed on 23-Sep-2008 23:21 by Geoffrey