ColdFusion 9.0 Resources |
ColdFusion.MediaPlayer.setSourceDescriptionSets the URL of the FLV file. The URL can point to a location on the ColdFusion server or any other server. Function syntaxColdFusion.MediaPlayer.setSource("name", newURL) See alsoColdFusion.MediaPlayer.setMute, ColdFusion.MediaPlayer.setMute, 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 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> <script language="JavaScript" type="text/javascript"> function setSource() { ColdFusion.Mediaplayer.setSource('Myvideo',"/xyz/newvideo.flv"); }; </script> <br> <form> <input type="button" name="setSource" value="Set Source" onClick="setSource()"> </form> <cfmediaplayer name="Myvideo" source="/xyz/video.flv" width=500 height=400 align="middle" quality="high" fullscreencontrol="true"/> |