ColdFusion.Mediaplayer.setTitle

Description

Assigns a title for the media player on the top left corner.

Function syntax

ColdFusion.Mediaplayer.setTile("name", "title")

See also

ColdFusion.Mediaplayer.setMuteColdFusion.Mediaplayer.setSourceColdFusion.Mediaplayer.setVolume

ColdFusion.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.

title

Specifies the title to be displayed at the top left corner of the media player.

Returns

This function does not return any value.

Example

<h3>This is an example of the Mediaplayer.setTitle function. Clicking the Resize Mediaplayer button resizes the media player component.</h3>
<script language="JavaScript" type="text/javascript">
function assignTitle() {
ColdFusion.Mediaplayer.setTitle('Myvideo', Video);
};
</script>
<br>
<form>
<input type="button" name="resize" value="Resize Mediaplayer" onClick="assignTitle()">
</form>
<br/>
<cfmediaplayer name="Myvideo" source="\xyz\video.flv"
width=500 height=400 align="middle"
quality="high" fullscreencontrol="true"/>

 

Get help faster and easier

New user?