Description
Sets the URL of the FLV file. The URL can point to a location on the ColdFusion server or any other server.
Function syntax
ColdFusion.Mediaplayer.setSource("name", newURL) |
See also
ColdFusion.Mediaplayer.setMute, ColdFusion.Mediaplayer.setMute, ColdFusion.Mediaplayer.setVolume,
ColdFusion.Mediaplayer.startPlay, ColdFusion.Mediaplayer.stopPlay
History
ColdFusion 9: Added this function
Parameters
Parameter |
Description |
---|---|
name |
Specifies the value of the name attribute of the cfmediaplayer tag. |
newURL |
The URL to the FLV file. This can be a URL relative to the current page. You can store the FLV file on the ColdFusion server or any other streaming server. |
Returns
This function does not return any value.
Example
In this example, the source of the FLV file is changed from video.flv to newvideo. flv. The media player then plays the newvideo.flv file.
<h3>This is an example of the Mediaplayer.setsource function. Clicking the Set Source button changes the video playing in the media player.</h3> |