Skip to navigation.
Documentation 13.11.2008 parameters

Parameters

There are 3 ways to input parameters. The main input format is JSON. No XML or other format is supported, because JSON is standard, easy to parse and easy to produce.

Please note that this page is assuming that you know how to embed Flash objects into a webpage. You can use objects, embeds, SWFObject or other methods as well.

Each way is useable with query string or flashvars as well (the examples are in query string).

1. Load parameters in JSON format from URL

http://www.example.com/wuplayer.swf?url=VALUE

The value is the URL encoded url of the JSON input, like:

http://www.example.com/wuplayer.swf?url=http%3A%2F%2Fwww.example.com%2Fplayer.json

The player will send the following GET parameters to this URL:

  • "random": A random number for helping non-cached mechanisms.
  • "wuplayer_h264capable": The string value "true" if the Flash version is >= 9.0.60 which means the player can play h264 files. Otherwise this variable is absent.

So, with the example above, your application will receive this GET request:

http://www.example.com/player.json?random=654645&wuplayer_h264capable=true

2. Load parameters in JSON format inline

http://www.example.com/wuplayer.swf?jsonparams=VALUE

The value is the URL encoded JSON parameter object. The player will not download anything from a url, but you input all the JSON thing inline.

Read about the JSON parameters here.

3. Play a single video, no JSON

http://www.example.com/wuplayer.swf?video=VIDEO_URL
&preview=PREVIEW_IMAGE_URL&title=TITLE

The player is a simple video player in this mode, with default skin and many-many features turned off. Every value must be URL encoded:

  • VIDEO_URL (required): URL of the video file (FLV or MP4).
  • PREVIEW_IMAGE_URL (optional): URL to a preview image which is shown before the video plays.
  • TITLE (optional): A text shown before the video plays.

If you set either PREVIEW_IMAGE_URL or TITLE then the player will show them until the user clicks on the player. This equals to autoplay OFF, otherwise the video starts immediately (autoplay ON).

Example embed code

iMect means internet, media and other cool things. iMect is a small company near lake Velence, Hungary. We’ve a big footer on every page where you can discover what we do and what happens with us.

Az iMect jelentése: internet, média és egyéb király dolgok. Egy kis cég vagyunk közel a Velencei-tóhoz. Minden oldalon van egy nagy lábléc, ahol felfedezheted, hogy mivel foglalkozunk.