Psudo-Streaming with the flash player

Well today I was doing a bit of R & D into video Pseudo-Streaming. The term Pseudo meaning Fake or having an appearance of. Which is what it exactly is when applied to video streaming. In a roundabout way it allows the user to play the video anywhere on the timeline before the video has been fully downloaded.

I came across this great article here over on flash guru with a fully functional demo using a php backend. I’ve also seen an example using a Coldfusion service to handle the stream. Basically it’s a wrapper for some neat little java byte and filestream manipulation. Steve Savage’s post can be found here

This works a treat however we did stumble across and issue when trying to play a handful of converted .flv files. For some reason these files would not Pseudo-Stream. At first I thought it may have been a code issue but then had a look inside the .as code at the metadata listener.


ns['onMetaData'] = function (obj)
{
duration = (duration != undefined) ? duration : obj.duration;
times = obj.keyframes.times;
positions = obj.keyframes.filepositions;
};

the times variables was being set to null and using the FLV Meta Data viewer on the trouble makers I was able to confirm that these files did not have any keyframes.

Not exactly sure why these files didn’t contain any keyframes. I know that you can set keyframes from the CS3 Video conversion utility so it was possbible their conversion software that wasn’t creating the keyframes.

Read More

Actionscript reference for RIA Development

A friend of mine just recently notified me of this great reference doc. Adobe has released a poster style document for all their RIA platforms, Flex, Flash Player 9 and AIR.

It’s comprehensive and is easy to read, you can download it here

I love these things and remember getting one when I first started learning Coldfusion. Turned out to be quite an invaluable resource, learnt more off that chart than I learned at University. And for that I thank you oh knowledgeable chart.

Read More