Whatever message this page gives is out now! Go check it out!

ColdFusion.Mediaplayer.getType

Last update:
May 18, 2026

Description

Used to get the current playback type, if Flash or HTML player.

Function syntax

ColdFusion.MediaPlayer.getType("name")

See also

History

ColdFusion 10: Added this function

Parameters

Parameter
Description
name
Specifies the value of the name attribute of the cfmediaplayer tag.

Returns

This function returns the playback type as Flash or HTML 5.

Example

<!DOCTYPE html> 
 <html> 
 <head> 
 <script type="text/javascript"> 
 function getPlayback(player) 
 { 
 alert(ColdFusion.MediaPlayer.getType("player")); 
 } 
 </script> 
 </head> 
 <body style="background:#"> 
 <input name = "Source" value="Type" type="button" onClick="getPlayback('player')"> 
 <div> 
 <cfmediaplayer 
 fullScreenControl="yes" 
 name="player" 
 width=800 
 height=500 
 > 
 <source src="/videos/cathy2_HD.mp4" type="video/mp4" /> 
 <source src="/videos/gizmo.ogv" type="video/ogg" /> 
 </cfmediaplayer> 
 </div> 
 </body> 
 </html>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page