JW FLV Player Parameters

Supported variables for Flash (flashvars)

Here's a list of all flashvars the player uses. Check the player setup PDF for a one-page overview of all these flashvars. The setting of all these flashvars can be accessed by plugins/javascript through the view.config/player.getConfig() call of the API.

All flashvars can also be listed in an XML file and then fed to the player with a single flashvar:

  • config (undefined): location of a XML file with flashvars. Useful for short embed codes or CDN stream redirecting. See an example.

File properties

  • author (undefined): author of the video, shown in the display or playlist.
  • date (undefined): publish date of the media file.
  • description (undefined): text description of the file.
  • duration (0): duration of the file in seconds.
  • file (undefined): location of the mediafile or playlist to play.
  • image (undefined): location of a preview image; shown in display and playlist.
  • link (undefined): url to an external page the display, controlbar and playlist can link to.
  • start (0): position in seconds where playback has to start.
  • tags (undefined): keywords associated with the media file.
  • title (undefined): title of the video, shown in the display or playlist.
  • type (undefined): this is determines what type of mediafile this item is, and thus which model the player should use to determine playback. Supported values are sound, image, video, youtube, camera, http, lighttpd or rtmp. More info here.

All these file properties can be loaded as flashvars into the player, but they can also be assigned to every entry in playlists.

Colors

  • backcolor (undefined): background color of the controlbar and playlist. This is white with the default skin.
  • frontcolor (undefined): color of all icons and texts in the controlbar and playlist.
  • lightcolor (undefined): color of an icon or text when you rollover it with the mouse.
  • screencolor (undefined): background color of the display.

All these colors are in so-called hexadecimal values as is common for web colors. The wizard contains a colorpicker you can use if you're not proficient with web colors. Colorization is only supported if the skin supports it too.

Layout

  • controlbar (bottom): position of the controlbar. Can be set to bottom, over and none.
  • height (400): height of the display in pixels. When resizing is set to false, this is the overall player height.
  • playlist (none): position of the playlist. Can be set to bottom, over, right or none.
  • playlistsize (180): when below this refers to the height, when right this refers to the width of the playlist.
  • skin (undefined): location of a SWF file with the player graphics. Here's a skinning tutorial, an overview of supported elements and a couple of example skins.
  • width (280): width of the display in pixels. When resizing is set to false, this is the overall player width.

Behaviour

  • autostart (false): automatically start the player on load.
  • bufferlength (1): number of seconds of the file that has to be loaded before starting. Set this to a low value to enable instant-start and to a high value to get less mid-stream buffering.
  • displayclick (play): what to do when one clicks the display. Can be play, link, fullscreen, none, mute, next. When set to none, the handcursor is also not shown.
  • fullscreen (false): fullscreen state of the player. This is a read-only flashvar, useful for plugins.
  • icons (true): set this to false to hide the play button and buffering icon in the middle of the video.
  • item (0): playlistitem that should start to play. Use this to set a specific start-item.
  • linktarget (_blank): browserframe where the links from display are opened in. Some possibilities are '_self' (same frame) , '_blank' (new browserwindow) or 'none' (links are ignored in the player, so javascript can handle it).
  • logo (undefined): location of an external jpg, png or gif image to show in a corner of the display. With the default skin, this is top-right, but every skin can freely place the logo.
  • mute (false): mute all sounds on startup. Is saved in a cookie.
  • quality (true): enables smoothed playback. This sets the smoothing and deblocking of videos on/off. Is saved in a cookie.
  • repeat (none): set to list to play the entire playlist once, to always to continously play the song/video/playlist and to single to continue repeating the selected file in a playlist.
  • resizing (true): by default, the player will resize itself to fill the entire canvas. Set this to false if you don't want the player to resize (e.g. when you load the player in a Flex application).
  • shuffle (false): shuffle playback of playlist items.
  • state (IDLE): current playback state of the player. Can be IDLE (no file loaded), BUFFERING (loading a file), PLAYING (playing a file), PAUSED (pausing playback; loading continues), COMPLETED (same as IDLE, but the file is player and loaded completely).
  • stretching (uniform): defines how to resize images in the display. Can be none (no stretching), exactfit (disproportionate), uniform (stretch with black borders) or fill (uniform, but completely fill the display).
  • volume (90): startup volume of the player. Can be 0 to 100. Is saved in a cookie.

External

  • abouttext (undefined): text to show in the rightclick menu. Please do not change this if you don't have a commercial license! When undefined it shows the player version.
  • aboutlink (http://www.longtailvideo.com/players/): url to link to from the rightclick menu. Do not change this if you don't have a commercial license!
  • client (Flash MAC X,0,XXX,0): Version and platform of the Flash client plugin. Useful to check for e.g. MP4 playback or fullscreen capabilities.
  • id (ply): ID of the player within the javascript DOM. Useful for javascript interaction. This is automatically set for Windows / MAC, but under Linux you'll have to set the flashvar.
  • plugins (undefined): a powerful new feature, this is a comma-separated list of swf plugins to load (e.g. yousearch,viral). Each plugin has a unique ID and resides at plugins.longtailvideo.com. Go to the LongTailVideo AddOns section to see all available plugins.
  • streamer (undefined): location of a server to use for streaming. Can be an RTMP application (here's an example) or external PHP/ASP file to use for HTTP streaming. If set to lighttpd, the player presumes a Lighttpd server is used to stream videos.
  • tracecall (undefined): name of a javascript function that can be used for tracing the player activity. All events from the view, model and controller are sent there. Set this to flash to utilize the internal Flash tracing mechanism and to arthropod to use the Arthropod debugger.
  • version (4.x.rrr): exact major release, minor release and revision number of the player. sent to javascript with every call. The revision number is always upped no matter the release, so 4.2.51 is the revision right after 4.1.50.

Moodle Plugin Activity Module Developed by Matt Bury - http://matbury.com/

FLV Player Developed By Jeroen Wijering - http://www.longtailvideo.com/

Help Files Index

帮助文件索引
显示本帮助的English版本