Toggling the title on the CFMEDIAPLAYER tag in ColdFusion 9

Readability

Toggling the title on the CFMEDIAPLAYER tag in ColdFusion 9

The fol­low­ing exam­ple shows how you can tog­gle the title/​file name on the <CFME­DI­APLAYER> tag in Cold­Fu­sion 9 by set­ting the Boolean hideTitle attribute.





    
    
    
    
    
    


The following example shows how you can toggle the title/file name on the <CFMEDIAPLAYER> tag in ColdFusion 9 by setting the Boolean hideTitle attribute.

<cfparam name="URL.hideTitle" default="false" type="boolean" />
 
<html>
<body>
 
    <input type="button" value="hide title" onclick="document.location = '?hideTitle=true';" />
    <input type="button" value="show title" onclick="document.location = '?hideTitle=false';" />
 
    <cfmediaplayer name="flvPlayer"
            source="http://helpexamples.com/flash/video/caption_video.flv"
            autoPlay="true"
            hideTitle="#URL.hideTitle#" />
 
</body>
</html>

One thought on “Toggling the title on the CFMEDIAPLAYER tag in ColdFusion 9”

Leave a Reply

Your email address will not be published.