Just created this open source video player styled like hulu. It’s adapted and rewritten code from: http://chrisbrimelow.com/blog/?p=15 . Some of the changes I made were pretty basic including separating the ui from some of the nitty gritty stuff that drives the video. There’s also file streaming capabilities built into the player.
To take advantage of streaming video, I’m running nginx with flv-streaming-module compiled into my install. Seems to work pretty well and handles tons of connections simultaneously.
Source code on github for this video project is located here: http://github.com/elguapo1611/opthumb-videoplayer/tree/master
Trying to load a bitmap crossdomain without the correct policy file. Because of this, I can’t access the bitmapData within the loaded document which makes scaling the photos look horrible. I’m going to try loading the ByteArray and translating it directly to a bitmap. However, I’m not sure if this gets around the crossdomain issue.
update:
So…. loading the bitmapData as a byteArray using the netStream class seems to work. I’m going to do a little load testing to see how fast this method is before proceeding. Here are some resources:
update:
Although at first glance the previous solution seemed to work, it looks like I am still unable to use bitmapData.draw() on the display object that’s created. I wrapped the some console logging around each step of the conversion process and it looks like everything goes to crap at: oBitmapData.draw(oSource, oMatrix) where oSource is the loaded file in a Loader class that I have forced a type convertion on. The struggle continues.