cfmediaplayer

Creates an in-built media player that lets you play FLV files

  <cfmediaplayer source="">

 cfmediaplayer(source="");

The cfmediaplayer tag is DEPRECATED as of ColdFusion 2016

Attribute Reference

width string

Width of the media player, in pixels.

height string

Height of the media player, in pixels.

fullscreencontrol boolean

Whether full screen is enabled

hideBorder boolean

A Boolean value that specifies if you want to hide border for the media player panel

controlbar boolean

A Boolean value that specifies if you want to display the control panel for the media player

align string

Specifies the vertical alignment of the media player.
Values:
  • left
  • right
  • center

onload string

Custom JavaScript function to run on loading the player component.

bgcolor string

The background color of the media player specified as a Hexadecimal value without a "#"

source string
Required

The URL to the FLV file.

name string

Name of the media player.
The name attribute is required when you invoke JavaScript functions.

quality string

The quality of the media playback
Values:
  • high
  • medium
  • low

hideTitle boolean

A Boolean value that specifies if you want to hide title for the media player panel

oncomplete string

Custom JavaScript function to run when the FLV file has finished playing.

onstart string

Custom JavaScript function to run when the FLV file starts playing.

wmode string

Specifies the absolute positioning and layering capabilities in your browser
Values:
  • opaque
  • transparent
  • window

autoPlay boolean

A Boolean value that specifies if the media player should automatically play the FLV file on loading the CFM page.

style string

Specify style for mediaplayer

Compatibility

ColdFusion:

DEPRECATED since version 2016

Examples
Sample code using the cfmediaplayer tag

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub