Tuesday, December 14, 2004
I have recently started playing around with streaming flash video, this is due to the fact that I bought a digital camera that also records movies a few months back and the fact that it is a great way for my family on the opposite side of the planet to keep up to date with my life. Last night using standard V2 components and PHPObject I managed to make my life a little easier.When my swf loads the media playback component and comboBox component are loaded onto the stage. Then I initialise my PHPObject and call the getFlvList function from my php class on my web server. This opens my flv directory reads the contents and returns the filenames. Then I populate the comboBox with the filenames and add a listener to detect the onChange event, this then concatenates the filename with the baseURL variable and tells the media player to open and play that file. So now all I have to do is drop my .flv files in the correct directory, easy!
Jon 9:03 AM Permalink

