jQuery flash video load
I am running a search on videos, how I get there isn’t really the issue, we can all use Coldfusion to spit out queries with our eyes blindfolded (and one hand tied behind our back?). Lets just skip all of that and just pretend we have the resulting query named aptly ‘qVideos’. This is where we shall begin.
<a href=”videoplayer.swf?vID=#qVideos.Filename#.flv&startvid=1″ class=”swfLoader” target=”_blank”><img src=”/pathtothumbs/#qVideos.Filename#.jpg” width=”132″ height=”98″ /></a>
$.swfobject.embedSWF(this.href, “videoPlayer”, “453″, “275″, “9.0.0″, “”,flashvars, params, attributes);
return false; //return false so that the link click does not get followed
So then load up the page and you can click on your happy little thumbnails (or if you haven’t got those, a link by itself will do) and your linked video will be played in your designated div. Of course you’ll have to figure out your own video player, I have the luxury of flash geniuses that I can rely on, but it’s relatively simple.