ColdFusion.Mediaplayer.getType

Description

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

Function syntax

ColdFusion.MediaPlayer.getType("name")

See also

ColdFusion.Mediaplayer.resizeColdFusion.Mediaplayer.setMuteColdFusion.Mediaplayer.setSource
ColdFusion.Mediaplayer.setVolumeColdFusion.Mediaplayer.startPlayColdFusion.Mediaplayer.stopPlay

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>

 

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online