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(info) 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(info) to JSPWiki/WEB-INF/lib

Configure

Edit webapps/JSPWiki/WEB-INF/jspwiki.properties and add arnaud to jspwiki.plugin.searchPath

Syntax

  • v0.2
[{Flash src='yourAttachedFlash.swf' width='800' height='600' controls='true|false' play='true|false' loop='true|false' parameters='param1=value1&param2=value2'}]
  • v0.1
[{Flash src='yourAttachedFlash.swf' width='800' height='600'}]
  1. src
    mandatory. Can be a local attachment or URL.
  2. height
    optional. defaults to 325, like YouTube.
  3. width
    optional. defaults to 450, like YouTube.
  4. controls
    optional. defaults to true.
  5. play
    optional. defaults to true. Will not take effect if controls is true.
  6. loop
    optional. defaults to false. Will not take effect if controls is true.
  7. parameters
    optional.

Build Your Own Version

  1. get the sources
  1. unzip to a workspace
  2. copy JSPWiki/WEB-INF/lib/JSPWiki.jar to that workspace
  3. 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:

Plugin insertion failed: Could not find plugin arnaud.FlashPlugin insertion failed: Could not find plugin arnaud.Flash

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

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.

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
« This page (revision-27) was last changed on 26-May-2008 23:10 by mindmatrix [RSS]