Player Options (Version 5.x)

In version 5 of the Flash Video plugin, the entire capability of the LongTail Flash Video Player is made available. Options in italics are not included in the plugin options page as they are specific to the file and as such should not be set globally. Keep in mind also, that default values set in the plugin options panel can always be overridden inline in a post.

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.
  • 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.
  • provider (undefined): this is determines what type of mediafile this item is, and thus which provider the player should use for playback. By default, the type is detected by the player based upon the file extension. If there’s no suitable extension or the player detects the type wrong, it can be manually set. The following default types are supported:
    • video: progressively downloaded FLV / MP4 video, but also AAC audio.
    • sound: progressively downloaded MP3 files.
    • image: JPG/GIF/PNG images.
    • youtube: videos from Youtube.
    • http: FLV/MP4 videos played as http pseudo-streaming.
    • rtmp: FLV/MP4/MP3 files played from an RTMP server.

Video Size

  • width (400): width of the display in pixels. When resizing is set to ”false”, this is the overall player width.
  • height (280): height of the display in pixels. When resizing is set to ”false”, this is the overall player height.

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.

* 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”.
  • dock (false): set this to true to show the dock with large buttons in the top right of the player.
  • icons (true): set this to ”false” to hide the play button and buffering icon in the middle of the video.
  • logo.file (undefined): location of an external jpg, png or gif image which replaces the watermark image (Licensed players only)
  • logo.link (undefined): link to direct to when the watermark image is clicked on (Licensed players only)
  • logo.hide (true): When set to true, the logo will auto-hide (Licensed players only)
  • logo.position (bottom-left): The corner in which to display the logo. Can be bottom-left, bottom-right, top-left or top-right (Licensed players only)
  • 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

  • skin (undefined): location of a SWF file with the player graphics.

Behavior

  • 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.
  • item (0): playlistitem that should start to play. Use this to set a specific start-item.
  • mute (false): mute all sounds on startup. 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.
  • shuffle (false): shuffle playback of playlist items.
  • smoothing (true): This sets the smoothing of videos, so you won’t see blocks when a video is upscaled. Set this to false to get performance improvements with old computers / big files.
  • 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

  • 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.
  • ltas.cc (undefined): Your unique LongTail Ad channel identifier.
  • config (undefined): location of a XML file with flashvars. Useful for short embed codes or CDN stream redirecting.
    <config>
    	   <image>files/bunny.jpg</image>
    	   <repeat>true</repeat>
    	   <backcolor>333333</backcolor>
    	   <volume>40</volume>
    	   <playlist>right</playlist>
    	   <playlist.size>150</playlist.size>
    	   <controlbar>over</controlbar>
    	</config>
    	

    Flashvars set in the embed code will overwrite those in the config XML.

  • debug (undefined): Set this to either arthropod, console or trace to let the player log events. More info in the plugins documentation.

Using Special Characters (& = ?)

Note that you must urlencode the three glyphs ? = & inside flashvars, because of the way these flashvars are presented to the player. The urlencoded values for these symbols are listed here:
? ? %3F
= ? %3D
& ? %26
So if your file to play is at the location getplaylist.php?id=123&type=flv, you must set the file flashvar to getplaylist.php%3Fid%3D123%26type%3Dflv.

Enable Google Analytics tracking on videos:

  1. Make sure you website is currently being tracked by Google. If you need to sign up, visit this webpage: Google Analytics. It’s free for private use. Once you’ve signed up and configured your website appropriate (and see your traffic data), you’re ready to track videos!
  2. In the global plugin options page, set the Callback URL (under Interaction) to analytics.
  3. Check to make sure Enable JavaScript is checked

That’s it! You should start seeing the stream_start and stream_end events in a day or two. Keep in mind, you will likely have to search for them, as video plays generate lower traffic than page views. The URL format will be (assuming the flv file is called 300.flv): stream_start/300.flv and stream_end/300.flv

* Note: You may need to add the urchinTracker() code before the flash video player for it to work. Google suggests you place the code at the bottom of the page, I have had good luck by placing it directly after the opening body tag.

google

google

asus