Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Once again, we are going to make "hard things" easy in ColdFusion by using the new cfmediaplayer tag to embed an FLV into a page. The cfmediaplayer tag lets you embed an FLV and do some basic formatting of the Media Player without having to use any sort of object or embed tags. This lets you embed a simple FLV player into any page without to need open Flash and build or export your own player. So in the Chapter8 folder, I have an assets folder which contains a surfing.flv file, and we are going to open up mediaplayer.cfm and I already have a basic media player on this page.
I also have my time code over here, a full-screen control and a volume control. So, let's go back to CF Builder and manipulate some of the controls on our page. The first thing I want to do is get rid of the title at the top. I don't like it saying the name of the video that's being played. So, I am going to set hidetitle to true. I also don't want to have a full- screen control, so I am going to set fullscreencontrol to false. And I also want it to auto play, so we will choose autoplay is true. Go back to the browser and reload.
As you see, the video started playing right away. I no longer have my title at the top and the full-screen control has also been removed. And it is indeed that simple to get a Flash media player running on your pages, with just one line of code in ColdFusion. That's all there is to the new cfmediaplayer tag. While it's possible to build your own players in Flash, there simply is no faster way to get rich media playing on your pages than just one call to the cfmediaplayer tag.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 101498 Viewers
61 Video lessons · 88258 Viewers
71 Video lessons · 72129 Viewers
56 Video lessons · 103894 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.