Calendar

««Feb 2010»»
SMTWTFS
  123456
78910111213
14151617181920
21222324252627
28

Alert Email

Get a short email alert whenever a new entry is published.

Confidential, secure it's piece of cake to keep uptodate.

CFVIDEOPLAYER comes to OpenBD

Published: 1:02 PM GMT, Wednesday, 4 February 2009

The CFVIDEOPLAYER tag has been introduced to the core base of OpenBD and is available as part of the nightly builds. It will be rolled into the upcoming 1.0.2 release.

This tag was first introduced to the CFML community by Railo, the other CFML alternative runtime, some time back. We hadn't seen a need for it until members of our steering committee started discussing it and was soon decided that it should be part of our offering too. We'd like to thank Railo for inspiring a new generation of multimedia tags to be part of the CFML language.

We've based it on the popular and open source flash player, FlowPlayer which is shipping with the core distribution of OpenBD.

CFVIDEOPLAYER lets you quickly embed video, photo slideshows and audio streaming into the page without having to worry or wrestle with the logistics.

<!--- Multiple Clips --->
<cfset clips = ArrayNew(1)>
<cfset clips[1] = "http://blip.tv/file/get/Twobydit760.flv">
<cfset clips[2] = "http://blip.tv/file/get/N8inpasadena-Flowers457.flv">
 
<cfvideoplayer video="#clips#" playlist="true" stop="true" autoplay="false">

<!--- Single Clip --->
<cfset singleClip = "http://blip.tv/file/get/N8inpasadena-Flowers457.flv">

<cfvideoplayer video="#singleClip#">

You can pass in a single URL to a clip, or alternatively pass in a cfarray of URL's and it will automatically play each clip in turn. This could allow you to insert a short pre-amble (or advert) at the front of your main video.

You have control over whether the player auto starts, width, height, fits to screen, hide various controls, and whether or not you want the user to be able to click on the video to be taken to another page.

There is no pre-requirements to using CFVIDEOPLAYER, just drop it into your CFML page and enjoy.

You can see the CFVIDEOPLAYER in action here at our live demo site. Showcasing the latest nightly builds.

Comments (14)

Added a ticket http://code.google.com/p/openbluedragon/issues/detail?id=94

left by Matt Woodward . Friday, 3 April 2009 6:49 PM

@Magnus--we're using FlowPlayer so we will support the functionality available in that player. I notice there are some MP3/audio plugins so we would have to look at whether or not it makes sense to tap into those.

I'll put in a ticket for the request so it's on our radar. Thanks for the suggestion!

left by Matt Woodward . Friday, 3 April 2009 6:40 PM

I just want to play audio. Will it work for that? It is possible to not have a screen image when it is just audio? If not, are there plans for this?

left by Magnus . Thursday, 2 April 2009 10:06 PM

@Bill i am behind you 100% regarding the bloat of HTML pages. That is why I have been working on a new model for delivery of this extra client side technology without taking the lazy approach of just dumping the JS straight into the HTML page.

CFAJAXPROXY is one that i am working on at the moment, and my goal there is to keep the in-page HTML to an absolute minimum. Now as CFVIDEOPLAYER proved, there is some teething issues to be worked out with various browsers, but thats where i find the power of open source really kicks in. We can throw this over the wire much quicker and earlier and instantly we get CHEERS or JEERS! :)

left by Alan Williamson . Friday, 6 February 2009 9:08 AM

@Bill--I don't think your comments are off-topic at all. We're always interested in hearing what people think about the direction we're taking with things, which is another reason we're going to continue to throw ideas out to the OpenBD community as early as we can. So never be afraid to let us know what you think!

left by Matt Woodward . Friday, 6 February 2009 12:31 AM

@Alan, Yeh, I figured as much but just wanted to see how far it was being thought out.. I have used a number of video players and wanted to see about the ease of doing it with a tag.. But I probably won't change.. I did however switch to flowplayer this morning.. it's pretty good in comparison to some..

One a related, but off topic note, I'm personally of the mindset tht tags like these and the CF Ajax tags don't really have a place in an application server per se. When CFWindow, CFDIV, CFLayout, etc came out, i took a quick look, laughed and moved on.. Thats def one of the things I'm liking about openBD.. keeps file size small, keeps the http request from being swollen, etc.. any bloating is directly attributed to my actions and controllable 100%..

left by Bill Berzinskas . Thursday, 5 February 2009 10:41 PM

Sure we could do that -- but is there any documentation on how this works anywhere? We will naturally add in the necessary functionality to keep with Railo, as they are considered the "spec lead" for this particular tag and its important to support it and extend it where possible.

So yes, the inner tags we did toy with, but felt there was an easier quicker way to simply throw a list of video URL's to the player.

This is why we love open source and the ability to perform nightly releases as we quickly garner the feedback from the community and make the corrections where necessary. Nightly builds are as much about experimentation as they are about bug fixes.

Thanks

left by Alan Williamson . Thursday, 5 February 2009 9:22 AM

Why not supporting multiple videos the same way Railo does with tag cfvideoplayerparam?

left by Markus Meier . Thursday, 5 February 2009 9:07 AM

@Bill -- if you need that much control over the player, then i would advise you simply manage the flowplayer SWF yourself. There is a lot of functionality contained within that player

left by Alan Williamson . Thursday, 5 February 2009 9:03 AM

Make sure you update the full /WEB-INF/ folder when you are updating your existing OpenBD installation.

This is why its released in the nightly build, so we can test deployments.

left by Alan Williamson . Thursday, 5 February 2009 9:00 AM

Few things that come to mind off the top of my head:

a) any provision for encrypting the filename? Some players accomplish this with a simple toBase64() on the filename.. b) I spend an enormous amount of time making sure that JS files load thru a preconfigured front end. That being the case, I didn't see the .js files in the bluedragon folder anywhere so that I could either minify them, or even better, request them via a particular url.. I guess what I'm asking is where is the insertion point for this, should I need to change a few minor things.. c) Whats the future of this look like? I'm guessing that this is just to ease the setup / config, and I'd still have to do custom things via JS? A parameter I could see myself using alot is "watermark image".. d) last but not least, the ever popular embed code.. Is the full URL fed into the JS that creates the player? I typically wrap a player w/ a DIV, give it an ID and copy the innerHTML to my "Embed Video" area.. If the urls used here are relative, this would pose a problem..

Man.. It just came out, and I'm doggin it.. What a jerk! :-P

left by Bill Berzinskas . Wednesday, 4 February 2009 7:51 PM

Do I need to download and install flowplayer from their website? I put in the code and see the generated Object, and it looks to point to "data='load.cfres?f=/flowplayer/flowplayer-3.0.5.swf'". Is the flowplayer embedded in the release (OpenBD Ready To Run) or do I need to download it. If download, where in the root is it looking? BIN?

Thanks

left by Robert Whitton . Wednesday, 4 February 2009 7:15 PM

Yes, no problems at all.

left by Alan Williamson . Wednesday, 4 February 2009 2:03 PM

Cool. Does 'video' have to be a URL? Could it be a file name relative to the cfml file as per Railo? e.g. "videos/intro.flv"

left by Gary F . Wednesday, 4 February 2009 12:39 PM
Add Comment