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>

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy