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  

This page was created on 10-May-2005 15:00 by Geoffrey

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 changed one line
Hello! Good Site! Thanks you! dytmpomhfbx
!!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.
!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)
* Fixed the Java security signed jar issue. (http://blog.jspwiki.org/wiki/Main_blogentry_260106_1) Now the plugin have the different package name. (v2.0)
* 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.2 and 2.4:
* Demo on jspwiki 2.4.91 -- [http://sandbox.ecoast.idv.tw/wiki2491/Wiki.jsp?page=Mediaplayer]\\
* Demo on jspwiki 2.2 -- [http://sandbox.ecoast.idv.tw/wiki/Wiki.jsp?page=WikiEditTest]
!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.
| |mediaplayer|quicktime
|Show|1 | true
|Hide|0 | false
*autostart = If it start to play automatically or not.
| |mediaplayer|quicktime
|auto|1 | true
|manual (click to play)|0 | false
*autorewind = If it rewinds od not when play ends.
| |mediaplayer|quicktime
|auto rewind|1 | 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|mediaplayer2.jar], 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|Mediaplayer.java]
!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
----
Version Date Modified Size Author Changes ... Change note
17 23-Sep-2008 23:21 3.418 kB Geoffrey to previous
16 19-Nov-2007 14:31 3.432 kB 141.7.56.2 to previous | to last added tag for better findability
15 26-Jun-2007 15:49 3.398 kB MurrayAltheim to previous | to last restored after incredibly intelligent vandalism
14 26-Jun-2007 08:14 0.043 kB 202.138.119.210 to previous | to last xykzhudpgh
13 04-Feb-2007 08:42 3.398 kB 61.219.62.7 to previous | to last
12 31-Jan-2007 04:34 3.377 kB RonAtkins to previous | to last
11 24-May-2006 07:04 3.166 kB AnonymousCoward to previous | to last
10 22-May-2006 17:21 3.042 kB Geoffrey to previous | to last
9 21-May-2006 11:05 2.967 kB Geoffrey to previous | to last
8 21-May-2006 11:05 2.967 kB Geoffrey to previous | to last
7 21-May-2006 11:03 2.991 kB Geoffrey to previous | to last
6 21-May-2006 11:02 3.059 kB Geoffrey to previous | to last
5 21-May-2006 10:50 2.395 kB Geoffrey to previous | to last
4 18-May-2006 00:01 1.926 kB AnonymousCoward to previous | to last
3 10-May-2005 15:05 1.873 kB Geoffrey to previous | to last
2 10-May-2005 15:01 1.87 kB Geoffrey to previous | to last
1 10-May-2005 15:00 1.785 kB Geoffrey to last
« This page (revision-17) was last changed on 23-Sep-2008 23:21 by Geoffrey