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

ColdFusion.Mediaplayer.stopPlay

Last update:
May 18, 2026

Description

Stops playing the FLV file.

Function syntax

ColdFusion.Mediaplayer.stopPlay("name")

See also

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.stopplay function. Clicking the Stop Play button stops playing the video.</h3> 
 <script language="JavaScript" type="text/javascript"> 
 function onStop() 
 { 
 ColdFusion.Media player.stopPlay('Myvideo' ); 
 }; 
 </script> 
 <br> 
 <form> 
 <input type="button" name="stopPlay" value="Stop Play" onClick="onStop()"> 
 </form> 
 <cfmediaplayer name="Myvideo" source="/xyz/video.flv" 
 width=500 height=400 align="middle" 
 quality="high" fullscreencontrol="true"/>

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