OpenBD Wiki

From OpenBD
Jump to: navigation, search

CFVIDEOPLAYER

Contents

Summary

This tags allows you to quickly embed a FLASH media player into the page allowing you to display images, music and video files. It supports a wide range of properties including the ability to control a playlist of clips. Supported formats are flv, mp4, m4v for video and jpg, gif and png for images.

Attributes

Attribute Required Description
VIDEO Required Either a single URL or a CFML array of URL's to different clips that will be played one after another
HEIGHT Optional The height of the flash player; defaults to 200
WIDTH Optional The width of the flash player; defaults to 300
CLASS Optional The name of the CSS CLASS that will be applied to the div tag of the rendered player
ALLOWFULLSCREEN Optional boolean, to control if the player can be maximised to the full screen or not; default false
AUTOPLAY Optional boolean, should the player start playing the first clip as soon as its loaded; default true
LINKURL Optional If the user clicks on the video player, where will it take them
LINKWINDOW Optional If the LINKURL is not blank, how do you wish to target the link (_self,_blank,_parent,_top)
PLAY Optional boolean, should the PLAY button be displayed, default true
VOLUME Optional boolean, should the VOLUME control be displayed, default true
MUTE Optional boolean, should the MUTE button be displayed, default true
TIME Optional boolean, should the TIME be displayed, default true
STOP Optional boolean, should the STOP button be displayed, default false
PLAYLIST Optional boolean, should the PLAYLIST back and forth controls be displayed, default false

Examples

<cfset clips = ArrayNew(1)>
<cfset clips[1] = "http://blip.tv/file/get/TwobyFour-DehartHomanTwoByFourWinterSkateparkEdit760.flv">
<cfset clips[2] = "http://blip.tv/file/get/N8inpasadena-Flowers457.flv">

<cfvideoplayer video="#clips#" playlist="true" stop="true" autoplay="false">

<cfset singleClip = "http://blip.tv/file/get/N8inpasadena-Flowers457.flv">
<cfvideoplayer video="#singleClip#" playlist="true" stop="true" autoplay="false">

Notes

The flash player component will be loaded dynamically from within the OpenBD engine environment. There is no requirement to manually manage the SWF file in any external directory.

The videoplayer will be placed inside a DIV tag with a class name of "cfvideoplayer". This will enable you to find all references of it very quickly using say JQuery.

Engine

  • OpenBD 1.0.2
  • Railo 3 (video/height/width only)

Personal tools