Toggling the control bar on the CFMEDIAPLAYER tag in ColdFusion 9

Readability

Toggling the control bar on the CFMEDIAPLAYER tag in ColdFusion 9

The fol­low­ing exam­ple shows how you can tog­gle the con­trol bar on the <CFME­DI­APLAYER> tag in Cold­Fu­sion 9 by set­ting the Boolean controlbar attribute.









    

And the out­put of the <CFME­DI­APLAYER> tag is as fol­lows:

The following example shows how you can toggle the control bar on the <CFMEDIAPLAYER> tag in ColdFusion 9 by setting the Boolean controlbar attribute.

<html>
 
<cfparam name="URL.showControlbar" default="true" />
 
<head>
</head>
<body style="padding:20px;">
 
    <div style="background-color:#EEEEEE; padding:5px;">
        <input type="button" value="hide control bar" onclick="document.location = '?showControlbar=false';" />
        <input type="button" value="show control bar" onclick="document.location = '?showControlbar=true';" />
    </div>
 
    <br/>
 
    <cfmediaplayer name="flvPlayer"
            source="http://helpexamples.com/flash/video/caption_video.flv"
            autoPlay="true"
            controlbar="#URL.showControlbar#" />
 
</body>
</html>

And the output of the <CFMEDIAPLAYER> tag is as follows:

Leave a Reply

Your email address will not be published.