|
DescriptionChanges
the current size of the media player.
Function syntaxColdFusion.Mediaplayer.resize("name", "height", "width")
HistoryColdFusion
9: Added this function
Parameters
Parameter
|
Description
|
name
|
Specifies the value of the name attribute
of the cfmediaplayer tag.
|
height
|
The height (in pixels) to set for the media
player. The height is 360 pixels, by default.
|
width
|
The width (in pixels) to set for the media
player. The width is 480 pixels, by default.
|
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"/>
|
|
|