|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Red5 and AMF for delivering bunches of large media files?Hi!
I'm working on a solution where I need to bulkload packages of media files. I want to avoid loading them as single files one by one, because of loading flow stability, security etc., so group loading soultions like BulkLoader are out of the question. The packages typically consists of 5-8 full length mp3 files, or 10 print resolution png's, so they're quite heavy, and they are assembled on the fly from dynamically server processed files. I've experimented with all kind's of solutions:
So, my question is: Would Red5 and AMF be a solution for handling my media delivery needs? Would it be possible and well working to assemble a native parent object containing this kind of media objects (mp3s, bitmaps), serialize it to AMF and let Red5/RTMP deliver it to my Flex/Air app for further use? Regards! / Jonas _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: Red5 and AMF for delivering bunches of large media files?I wrote a POC a while ago:
example Application.java: http://www.pastebin.org/51541
example AS3 Class: http://www.pastebin.org/51543
It's a bit experimental code, never cleaned it up
but in effect it does:
1. Red5 loads a large file to memory when the
application starts
2. Flash/Flex client can connect and call method
"requestFile" to receive the file as a bytearray
3. Flash/Flex client converts the bytes in the demo
to an SWF and adds the SWF to the stage ; you could save it to disc with the
FileReference
A pretty clear example of using the FileReference
class and saving files (in this case user generated graphics) ; http://www.adobe.com/devnet/flash/quickstart/filereference_class_as3/
Walter
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: Red5 and AMF for delivering bunches of large media files?You can process the SwfMill output with haXe to make it compatible with AS3. I had to do much the same thing to access font classes dynamically (there were about 600 fonts available, couldn't embed them all at the same time) and I don't think it will be any different with your media.
2009/11/6 Jonas Nyström <jonasnys@...> Hi! _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: Red5 and AMF for delivering bunches of large media files?Thank you, Walter and Michael!
@Walter: Wonderful, code on both sides! :-) @Michael: It seems like Haxe can access swfmill assembled assets, although they aren't exported as classes by swfmill, only as symbols. Maybe it's possible to create a swfmill-asset-loader swf in Haxe, and load this as a module in my Flex app? _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
| Free embeddable forum powered by Nabble | Forum Help |