[Free] AMF decoder is coming along
Ashvin Savani - Arckid
me at arckid.com
Tue Sep 20 02:33:27 PDT 2005
Hi all,
Where is the server code which we can download and test? I am so much
excited to test it. Can somebody attach source or executable with this mail?
Best Regards,
Ashvin Savani - Arckid
Freelance Developer - Arckid.com
CTO - Avinashi.com
Team Macromedia Member - Flash
User's Group Manager - Gujarat
-----Original Message-----
From: Free-bounces at osflash.org [mailto:Free-bounces at osflash.org] On Behalf
Of Lee McColl-Sylvester
Sent: Tuesday, September 20, 2005 2:04 PM
To: Free at osflash.org
Subject: Re: [Free] AMF decoder is coming along
Hey Grant... That's all well and good, but it means more work for poor me
:-s
Lee
-----Original Message-----
From: Free-bounces at osflash.org [mailto:Free-bounces at osflash.org]On
Behalf Of grant at bluetube.com
Sent: 19 September 2005 09:35
To: Free at osflash.org
Subject: Re: [Free] AMF decoder is coming along
oh quit your crying you big girls blouse, you can do the .NET port once its
working
:) lol
Grant.(fellow limey)
----- Original Message -----
From: Lee McColl-Sylvester lee.mccoll at lyons-group.co.uk
To: neoriley at gmail.com, Free at osflash.org
Sent: 9/19/05 11:52 AM
Subject: Re: [Free] AMF decoder is coming along
> Java? :-( I can't stand Java. Can't we use C++ or one of the .NET
languages? Java comes with so many headaches!
>
> Lee
>
>
> -----Original Message-----
> From: Free-bounces at osflash.org [mailto:Free-bounces at osflash.org]On Behalf
Of john grden
> Sent: 19 September 2005 08:46
> To: Free at osflash.org
> Subject: Re: [Free] AMF decoder is coming along
>
>
> So, if we use one of those, they just need to be tweaked to handle the
1byte issue that Mick referenced so we can use it on this gig, is that
right?
>
> I would agree about Java and keeping consistent. Thoughts?
>
>
> On 19 Sep 2005 15:28:45 -0000, grant at bluetube.com < grant at bluetube.com>
wrote:
>
> We could use the AMF decoder from either openAMf (java) or flourine (C#)
>
> if you want me to look at the openAMF version and see if I can tie it to
what luke has done I should have some time today or tomorrow.
>
> Personally I'd rather keep it in java, even though its a prototype so that
testing/deployment is simple.
>
> grant.
>
> ----- Original Message -----
> From: Micky Herres mickherres at hotmail.com
> To: Free at osflash.org
> Sent: 9/19/05 9:11 AM
> Subject: Re: [Free] AMF decoder is coming along
>
> > Patrick,
> >
> > The reason the size is 1 byte off is because AMF objects are sent over
in
> > 128 byte chunks. This AMF has an AMF Number of 3 (from the 0x03 in the
> > first byte), so if you look 128 bytes past the first set of body bytes
> > (which are the ones starting at the 0x02 on the first line), you will
see a
> > 0xc3.
> >
> > That 0xc3 byte is a kind of 'continuation' byte for the AMF object. It
lets
> > the flash player or server send multiple AMF objects at once in 128 byte
> > chunks. This way a really big AMF object will not block a bunch of
little
> > AMF objects. It also helps when sending video and audio at the same
time.
> > They show up much more closely together.
> >
> > Looking at the actual 2 bytes we are talking about:
> >
> > 0x03 --> 0000 0011
> >
> > 0xc3 --> 1100 0011
> >
> > Notice that the 2 most significant bits are both flipped to 1.
Essentially,
> > the 0xc3 byte is a header byte just like the 0x03 byte is. It just has
a
> > header size of 1 where the 0x03 byte denotes a header size of 12. The
only
> > reason it is not a completely new AMF object is because we know the
original
> > AMF with an AMF Number of 3 had a body size of 149 which is greater than
> > 128, so there are still bytes left to collect.
> >
> > When the Flash Player sends video data, even if you have it set to send
1K
> > per second (the lowest badwidth setting), every so often it sends a full
> > image. This full image is around 5-9K in size, and you will see tons of
> > these little continuation bytes after each chunk of 128 bytes.
> >
> >
> > If you get a chance, pull down that document John has posted. It talks
to
> > this and gives some more detail to the AMF header. That should help
with
> > your decoder.
> >
> > mick
> >
> >
> > Message: 3
> > Date: Sun, 18 Sep 2005 21:46:17 -0400
> > From: Patrick Mineault
> > Subject: Re: [Free] AMF decoder is coming along
> > To: Free at osflash.org
> > Message-ID:
> > Hrr,
> >
> > Looks like FlashCom AMF is not vanilla AMF, so no decoder will be coming
> > along for now. It has a couple of extra types that are not in vanilla
> > AMF, like 3-byte ints. Also it does not follow the header/body
> > convention of AMF. From the packet:
> >
> > 03 00 00 02 00 00 95 14 00 00 00 00 02 00 07 63 6F 6E 6E 65
> > 63 74 00 3F F0 00 00 00 00 00 00 03 00 03 61 70 70 02 00 09
> > 6C 6F 63 61 6C 68 6F 73 74 00 08 66 6C 61 73 68 56 65 72 02
> > 00 0C 4D 41 43 20 37 2C 30 2C 31 39 2C 30 00 06 73 77 66 55
> > 72 6C 02 00 30 66 69 6C 65 3A 2F 2F 2F 54 49 47 45 52 2F 55
> > 73 65 72 73 2F 6C 75 6B 65 2F 44 65 73 6B 74 6F 70 2F 74 65
> > 73 74 25 35 46 72 74 6D 70 2E 73 77 66 00 05 74 63 55 72 6C
> > C3 02 00 0F 72 74 6D 70 3A 2F 6C 6F 63 61 6C 68 6F 73 74 00
> > 00 09
> >
> > Everything from the first '03' on line 2 is a vanilla object that
> > follows standard AMF rules:
> >
> > app => localhost
> > flashVer => MAC 7,0,19,0
> > swfUrl => file:///TIGER/Users/luke/Desktop/test%5Frtmp.swf
> > tcUrl => rtmp://localhost
> >
> > Things above are a little less sure. It seems to be split 03 | 000002 |
> > 000095 | 14 | 00000000 | ...
> >
> > 02 00 07 63 6F 6E 6E 65 63 74 is 0x02 string code, length 7, then the
> > string "connect". 0x003ff0 could be int code, 16368 (some kind of
> > connect code?)
> >
> > 0x95 is 149, while the length from the 02 code to the end of the message
> > is 150, so probably message_len -1. This looks like it makes sense in
> > light of the Ruby code that was recently released.
> >
> > Patrick Mineault
> >
> >
> >
> > _______________________________________________
> > Free mailing list
> > Free at osflash.org
> > http://osflash.org/mailman/listinfo/free_osflash.org
>
>
>
> _______________________________________________
> Free mailing list
> Free at osflash.org
> http://osflash.org/mailman/listinfo/free_osflash.org
>
>
>
>
>
>
>
> --
> John Grden - Blitz
>
>
> _______________________________________________
> Free mailing list
> Free at osflash.org
> http://osflash.org/mailman/listinfo/free_osflash.org
_______________________________________________
Free mailing list
Free at osflash.org
http://osflash.org/mailman/listinfo/free_osflash.org
More information about the Free
mailing list