Red5 and AMF for delivering bunches of large media files?

View: New views
4 Messages — Rating Filter:   Alert me  

Red5 and AMF for delivering bunches of large media files?

by Cambiata :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:
  • SwfMill for compiling library swfs containing the media files - doesn't work well in as3 environment
  • Zip-archives - works in Air but very tricky in Flash/Flex
  • Far-archive - nice solution, but the linux server version doesn't work well
  • etc...
Right now I'm working in a php environment, but I've got to set up a Red5 server anyway because of video streaming needs...

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?

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I wrote a POC a while ago:
 
example Application.java: http://www.pastebin.org/51541
 
 
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
----- Original Message -----
Sent: Friday, 06 November 2009 18:04
Subject: [Red5] 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:
  • SwfMill for compiling library swfs containing the media files - doesn't work well in as3 environment
  • Zip-archives - works in Air but very tricky in Flash/Flex
  • Far-archive - nice solution, but the linux server version doesn't work well
  • etc...
Right now I'm working in a php environment, but I've got to set up a Red5 server anyway because of video streaming needs...

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

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Red5 and AMF for delivering bunches of large media files?

by Michael Hollenbeck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

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:
  • SwfMill for compiling library swfs containing the media files - doesn't work well in as3 environment
  • Zip-archives - works in Air but very tricky in Flash/Flex
  • Far-archive - nice solution, but the linux server version doesn't work well
  • etc...
Right now I'm working in a php environment, but I've got to set up a Red5 server anyway because of video streaming needs...

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



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: Red5 and AMF for delivering bunches of large media files?

by Cambiata :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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