Playing FLV files

From Curvity
Jump to: navigation, search

First, convert and host your FLV file somewhere. Then on a wiki page, invoke the <dhflashplayer> using the following attributes:

Attribute Reference

  • file = file name with extension (e.g. "snake.swf")
  • width = width of the movie in px (e.g. "150")
  • height = height of the movie in px (e.g. "80")
  • path = full path of the movie file (e.g. "http://badger.com/")
  • charset = charset used by the feed (e.g. "utf-8")
  • flashvars = Flash variables to pass to the flash player (e.g. "&showdigits=true&autostart=true&image=http://mywebsite.com/image.jpg"). Must include the ampersands!!
  • more_then_one = If you want to put more then one video on one page, set this to true or 1. It will then leave out the second call to the SWFObject.js file

Examples

Bare minimum:
<dhflashplayer>file=mushroom.flv|width=200|height=120|path=http://somewebsite.com/movies/</dhflashplayer>

With flash variables and only one video player on the page, use something like:
<dhflashplayer>file=mushroom.flv|width=200|height=120|path=http://somewebsite.com/movies/|flashvars=&showdigits=true&autostart=false&image=http://somewebsite.com/images/mushroom.jpg</dhflashplayer>

With more then one video on the page, the extra players on the same page should use the following code:
<dhflashplayer>file=mushroom.flv|width=200|height=120|path=http://somewebsite.com/movies/|flashvars=&showdigits=true&autostart=false&image=http://somewebsite.com/images/mushroom.jpg|more_then_one=true</dhflashplayer>

Below is an example: <dhflashplayer>file=DMtest188_480x360.flv|width=480|height=360|path=http://curvity.org/w/images/%7Cflashvars=&image=http://curvity.org/w/images/vlcsnap-5123655.png</dhflashplayer>