ColdFusion.Mediaplayer.startPlay

Description

Plays the FLV file.

Function syntax

ColdFusion.Mediaplayer.startPlay("name")

See also

ColdFusion.Mediaplayer.resizeColdFusion.Mediaplayer.setMuteColdFusion.Mediaplayer.setSource

ColdFusion.Mediaplayer.setVolumeColdFusion.Mediaplayer.stopPlay

History

ColdFusion 9: Added this function

Parameters

Parameter

Description

name

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

Returns

This function does not return any value.

Example

In this example, the FLV file is stored in the web root used by the ColdFusion server. Store an FLV file - video.flv in the location _web_root\xyz_.

<h3>This is an example of the Mediaplayer.startplay function. Clicking the Start Play button plays the video.</h3>
<script language="JavaScript" type="text/javascript">
function onStart() {
ColdFusion.Mediaplayer.startPlay('Myvideo');
};
</script>
<br>
<form>
<input type="button" name="startplay" value="Start Play" onClick="onStart()">
</form>
<cfmediaplayer name="Myvideo" source="/xyz/video.flv"
width=500 height=400 align="middle"
quality="high" fullscreencontrol="true"/>

 

 Adobe

Get help faster and easier

New user?