alaabataineh / php-rtmp-client

Automatically exported from code.google.com/p/php-rtmp-client
1 stars 0 forks source link

Patch to support full RTMP handshake and RTMPE #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm Andrei (http://www.rtmpd.com)

Here is a little gift-patch for doing the proper RTMP handshake. I also 
implemented RTMPE and works great.

One problem though... this is the 3rd time in my life when I'm writing php 
code. So I hope you understand my n00b php coding style

Cheers,
Andrei

Original issue reported on code.google.com by crtmpser...@gmail.com on 15 Jan 2011 at 5:10

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by qwantix@gmail.com on 20 Jan 2011 at 5:02

GoogleCodeExporter commented 8 years ago
i try to run the patch and it files

patching file DHWrapper.php
patching file RtmpClient.class.php
Hunk #1 FAILED at 5.
Hunk #2 FAILED at 48.
Hunk #3 FAILED at 164.
3 out of 3 hunks FAILED -- saving rejects to file RtmpClient.class.php.rej
patching file index.php
patching file RC4.php

Original comment by ejur...@gmail.com on 28 Jan 2011 at 1:53

GoogleCodeExporter commented 8 years ago
The patch was for -r24. I've modified it for -r26 (only the chunkSizeR/W stuff 
were edited).

Original comment by ememe...@gmail.com on 12 Jun 2011 at 4:13

GoogleCodeExporter commented 8 years ago
I'm sorry for the latest patch, it had an odd error which I think I can entitle 
"drowsiness" or that I was just plain tired. For some reason I had created an 
undefined variable headerSizeW instead of comparing with chunkSizeW...

The attached patch here is better than the last one I posted (which I'm now 
removing but leaving the post).

Original comment by ememe...@gmail.com on 14 Jun 2011 at 12:50

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
where is Crypt/DiffieHellman.php ?!

Original comment by kfirufk@gmail.com on 27 Dec 2011 at 11:00

GoogleCodeExporter commented 8 years ago
pear install Crypt_RC4
pear install Crypt_DiffieHellman

awesome patch!! works amazing with red5!! thank you  so much!

Original comment by kfirufk@gmail.com on 27 Dec 2011 at 11:18

GoogleCodeExporter commented 8 years ago
Thank you ememe...@gmail.com, your patch works great.
I've also disabled "[INFO]" logs by changing logback.xml and now my Red5 is 
running  smoothly with no errors!

Original comment by proma...@gmail.com on 28 Aug 2013 at 2:55