The Blog

 
 
OTHER POSTS
 
Here's a well hidden issue (and I blame nobody but myself):   I was writing what really is a very simple PHP script to grab a file from the server and download the file via a link. No matter what I did I kept getting an error from Firefox that politely informed me that it couldn't render the image due to internal errors.   I quite accidentally tripped across the cause .... somehow I
PHP and downloaded image can't be rendered error (Tue, Nov 15, '11)
It seems Safari doesn't like the use of the 'continue' as an object element. I have a short JS script all neatly wrapped up as a JavaScript "object" ....   function obj() { function _continue() { do_something_here; } this.continue = _continue; }   This worked fine with IE (7, 8 and 9), Firefox, Chrome and Opera; but Safari 5.05 complained that "this.continue = _continue;" was
A quick JavaScript note involving Safari ... (Sun, May 15, '11)
Because this question seems to be frequently asked, and because I want to help make the answer easy to locate:   PHP code follows ...   $ch_post_data = array(   'property_name_1' => 'property_value_1',   'property_name_2' => 'property_value_2' ); $ch = curl_init('http://somesite.com/somefiletocall.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_
PHP, curl and post submissions (Sun, May 15, '11)
Because this question seems to be frequently asked (by me at least), and because I want to help make the answer easy to locate:   Internet Explorer obviously has issues, but despite the fact it should be relegated to the trash heap of buggy software that doesn't perform nearly as well as its competition IE will be with us for years to come. One of the many issues I've had programming cross-
Internet explorer and overlay boxes that don't have content (Sun, Feb 20, '11)
Here's the scenario: you're clicking your way around a favorite commercial website looking for stuff to buy. Your mouse is busy filling up your shopping cart, but you really can't follow from product to product without pursuing a link that takes you from your happy hunting shopping grounds just to download information that really should be at your finger tips.   Damn ... what to do? Isn't t
Displaying a user friendly shopping cart (Sat, Oct 30, '10)
Shopping carts ... developed sometime after the invention of the wheel and then not really updated until the advent of the internet and electronic shopping.   Two things I wonder about: 1) Is it better to use a session cookie or database for shopping cart storage? 2) Isn't it annoying when you have to click from one to another just to view you shopping cart entries?   Okay, so I do
Shopping carts and databases and sessions oh my! (Sat, Oct 30, '10)
This is the first post of my web development blog. I don't pretend that you will find cutting edge technology or programming techniques here, but I do believe what you find here will be of value in your day to day needs.
My little attempt at giving back that which I have been so freely given (Sat, Oct 30, '10)
FlowPlayer and the (non) problem with overlays
Posted by ramabahama on Sat, Oct 30, '10
 

I've taken up using FlowPlayer for my web site streaming video needs. It's light weight, extensible, easy to program to and with, packed with features and available for free. If you want just a few extra tidbits like being able to brand your players with your own logo then a few bucks is in order for the commercial version ... otherwise you're free to use the freebie in any manner you choose (including your own profitable adventures).Screen shot from FlowPlayer site

 

I've found their online documentation pretty darned good too! For example I was having trouble finding a way to set the 'wmode' setting so I could overlay a border on a player I had installed for a large commercial vendor. I approached their documentation with some trepidation as I'm very familiar with all sorts of failed attempts at explaining technological products. The FlowPlayer site made finding my solution quick and absolutely pain free ... a definite relief in today's hurry up and publish atmosphere.

 

The solution? Simple ... in calling the initialization function 'flowplayer' make sure the second parameter is an object as opposed to a string reflecting the url of the movie to load. In that second parameter object include any Flash embedding settings.

 

So instead of:

flowplayer("video_player",

"http://myvideosite.com/myvideo.flv",

clip:{ ... clip stuff here ...},

plugins:{ ... plugins stuff here ... });

 

One can use something like:

flowplayer("video_player",

{"url":"http://myvideosite.com/myvideo.flv", "wmode":"transparent"},

clip:{ ... clip stuff here ...},

plugins:{ ... plugins stuff here ... });

LABELS: FlowPlayer Flash movies CSS overlay display JavaScript wmode

Sure, I could have just set the CSS 'border' attribute on the containing tag but that would not have solved my issue. The video which the client wanted had some empty black space around the edges and those were what needed hiding. Setting the wmode parameter for the Flash player allowed me to set up borders that were guaranteed to keep those spaces tucked safely away from the curious and discerning eyes of my customer's customers ... and things looked a lot better.

 

There are some other CSS related issues involved here, but I'm not going to get into them at the moment. Suffice it to say that before you rely on transparent backgrounds to allow mouse actions through to an underlying display make sure you check across the now three major browser offerings: IE, FF and Chrome.


[submit an addition or response]

Anonymous wrote on Thu, Jan 20, '11:
I agree regards Flow Player
This is a great app for delivering high quality video. Thanks for the tip, by the way, it saved me a bunch of time just yesterday.

Anonymous wrote on Fri, Jan 7, '11:
This has all been very interesting
I hope you will continue with your postings. I understand you are doing this on a 'can do' schedule, but the information you help share is very important.

Thanks.

 
Web Statistics