What's the cleanest way to stream video inside a Flash application?

Hello fellow Kirupians,

I’m about to embark on a rather large Flash project that will involve a lot of streaming video.
Most of the videos are short (about 4 seconds) but some will be longer, up to a couple of minutes.
The videos will be hosted on an Adobe Scene7 server, which allows for resolution and encoding-type to be set in the stream request (amazing technology that I hadn’t heard of until this project!).

Now what would you guys think is the cleanest way to embed these video’s in my main Flash application?

At the moment, I’m thinking something like this:

  • create an asset in the library that contains the standard FLV-playback component - without controls - and export for Actionscript.
  • create instances of this asset whenever needed, and send the stream-url to the instance
  • use .flv or .f4v video encoding because they have better streaming properties than H.264 - or so I’m told

What do you Flash-wizards think?

Thanks!