ColdFusion 9.0 Resources |
ColdFusion.MediaPlayer.resizeDescriptionChanges the current size of the media player. Function syntaxColdFusion.MediaPlayer.resize("name", "height", "width") See alsoColdFusion.MediaPlayer.setMute, ColdFusion.MediaPlayer.setSource, ColdFusion.MediaPlayer.setVolume, ColdFusion.MediaPlayer.startPlay, ColdFusion.MediaPlayer.stopPlay HistoryColdFusion 9: Added this function Parameters
ReturnsThis function does not return any value. ExampleIn 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.resize function. Clicking the Resize Mediaplayer button resizes the media player component.</h3> <script language="JavaScript" type="text/javascript"> function onResize() { ColdFusion.Mediaplayer.resize('Myvideo', 500, 800); }; </script> <br> <form> <input type="button" name="resize" value="Resize Mediaplayer" onClick="onResize()"> </form> <br/> <cfmediaplayer name="Myvideo" source="\xyz\video.flv" width=500 height=400 align="middle" quality="high" fullscreencontrol="true"/> |