a Flash Plugin#
Overview#
Easily add tutorials and presentations in your wiki.This plugin is easy to deploy with almost no configuration.
It's also easy to build with the provided ant script.
How to#
Install#
- v0.2
Copy aFlashPlugin-bin.zip
to webapps/JSPWiki and simply unzip there. It will only install 2 files, a javascript file for the player controls and the jar file.
- v0.1
Simply copy aFlashPlugin.jar
to JSPWiki/WEB-INF/lib
Configure#
Edit webapps/JSPWiki/WEB-INF/jspwiki.properties and add arnaud to jspwiki.plugin.searchPathSyntax#
- v0.2
- v0.1
- src
mandatory. Can be a local attachment or URL. - height
optional. defaults to 325, like YouTube. - width
optional. defaults to 450, like YouTube. - controls
optional. defaults to true. - play
optional. defaults to true. Will not take effect if controls is true. - loop
optional. defaults to false. Will not take effect if controls is true. - parameters
optional.
Build Your Own Version#
- get the sources
- v0.2: get the aFlashPlugin-src.zip
file
- v0.1: get the aFlashPlugin.zip
file
- unzip to a workspace
- copy JSPWiki/WEB-INF/lib/JSPWiki.jar to that workspace
- use ant to build (just call ant)
New Features#
- v0.2
- Added ability to pass parameters to flash file(parameters='yourParams')
- Added javascript controls(controls='true|false')\- Added play/pause option (play='true|false')
-Added loop option (loop='true|false') - v0.1
Basic support for flash attachments and external URLs
To Do#
- support alignment options, css, etc
Bugs and Limitations#
The play and loop parameters will only be taken into account if controls is false. When controls is true, those values are overridden by the javascript.Works for me. Thanks, Arnaud.
--Mark Craig, 12-May-2007
Cool! Is there a way to pass arguments for the .swf that require them?
--NascifAbousalhNeto, 14-May-2007
Of course, what would you need? Like arguments to a flash application to reuse in your action script? I'll spin another version of the plugin today with added features so I can certainly add that at the same time.
--arnaud, 14-May-2007
For those newbies like me: I found I had to change the embedded tag a little from what is shown above, to this:
[{arnaud.Flash src='yourAttachedFlash.swf' width='800' height='600' controls='true|false' play='true|false' loop='true|false' parameters='param1=value1¶m2=value2'}]
Thanks for the pointer Janne!
--V. Schmidt, 18-Jan-2008
wonderful it worked! for youtube, however can someone help how to add this video
<embed src="http://services.brightcove.com/services/viewer/federated_f8/271530267"
bgcolor="#FFFFFF"
flashVars="videoId=1562714743&playerId=271530267&viewerSecureGatewayURL=https://services.brightcove.com/services/amfgateway&
servicesURL=http://services.brightcove.com/services&cdnURL=http
://admin.brightcove.com&domain=embed&autoStart=false&"
base="http://admin.brightcove.com"
name="flashObj" width="486" height="412" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
From this URL:
http://dsc.discovery.com/news/2008/05/21/dinosaur-tracks-arabia.html
--mindmatrix, 26-May-2008
This still works great in 2.8.1, however, I found a minor bug. If you reference an attachment to the page and use the parameters, it will not find the attachment. You can either not use any parms or change the code to do the parms string append after the attachment calls.
--Lou, 10-Jun-2011
Playing YouTube video with a Flash plugin for JSPWiki#
Works like charm (on JSPWiki 2.6.1) check it out on my site how to embed a YouTube video: http://magyarul-tanulunk.brz.hu/wiki/Zolta_blogentry_111008_1
The wikimarkup to insert if you followed the installation instructions:
[{Flash src='http://www.youtube.com/v/k7C0cJeNsFg&hl=en&fs=1' controls= 'false' play='true'}]
The trick is that you have to extract the url from the embed code the YouTube provides. The plugin does everything else for you!
The original html code given (Where I have extracted the URL)was:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/f-8EN4JUqT8&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/f-8EN4JUqT8&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
--Baráti,Zoltán, 11-okt.-2008 23:37
I'd like to be able to change the background colors of flash movies. Is this possible?
-- JK 27-mar 2009
Add new attachment
List of attachments
| Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
|---|---|---|---|---|---|---|
zip |
aFlashPlugin-bin.zip | 4.7 kB | 1 | 15-May-2007 01:30 | 192.18.101.5 | v0.2 binaries |
zip |
aFlashPlugin-src.zip | 5.1 kB | 1 | 15-May-2007 01:29 | 192.18.101.5 | v0.2 |
jar |
aFlashPlugin.jar | 2.0 kB | 1 | 12-May-2007 08:17 | 70.112.220.253 | aFlashPlugin 0.1 |
zip |
aFlashPlugin.zip | 6.0 kB | 1 | 12-May-2007 08:19 | 70.112.220.253 | sources and build script |