[Red5] BaseRTMPClientHandler patch

Daniel Rossi electroteque at gmail.com
Mon Nov 3 19:25:17 PST 2008


params.put("objectEncoding", Integer.valueOf(objectEncoding));

This works with FMS and Red5 with either a 0 or 3 int. And doesnt  
affect playback or callbacks.

On 04/11/2008, at 1:15 PM, . wrote:

> why not just use the Number class, that should handle any casting  
> issues (atleast for when we are reading the value).
>
> On Mon, Nov 3, 2008 at 12:25 PM, Prabhu Tamilarasan (omNovia) <ptamilarasan at omnovia.com 
> > wrote:
> Strange, maybe it should be Double everywhere then.
>
>
>
>
> next generation web conferencing
>
> Prabhu Tamilarasan
> Senior Software Engineer
>
> 675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omnovia.com
>
> ptamilarasan at omnovia.com
>
> T +1.281.500.4065 x 731
>
>
> From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On  
> Behalf Of .
> Sent: Monday, November 03, 2008 2:08 PM
> To: red5 at osflash.org
> Subject: Re: [Red5] BaseRTMPClientHandler patch
>
>
> I have actually had to change a different cast to a Double when  
> connecting to FMS
>
> On line 527 of the same class, I changed:
>
> Integer encoding = (Integer) connectionParams
>
> to
>
> Double encoding = (Double) connectionParams
>
> just fyi...
>
> On Mon, Nov 3, 2008 at 8:56 AM, Prabhu Tamilarasan (omNovia) <ptamilarasan at omnovia.com 
> > wrote:
>
> Here is a small patch to fix connecting from one Red5 server to  
> another using RTMPClient.  For some reason in one of the overloaded  
> connect functions the objectEncoding is added as a double and there  
> is an error later in onInvoke trying to cast the objectEncoding to  
> int.
>
>
> # svn diff BaseRTMPClientHandler.java
>
> Index: BaseRTMPClientHandler.java
>
> ===================================================================
>
> --- BaseRTMPClientHandler.java  (revision 3321)
>
> +++ BaseRTMPClientHandler.java  (working copy)
>
> @@ -271,7 +271,7 @@
>
>                 this.connectArguments = connectCallArguments;
>
>
>                 if (!connectionParams.containsKey("objectEncoding")) {
>
> -                       connectionParams.put("objectEncoding",  
> (double) 0);
>
> +                       connectionParams.put("objectEncoding", (int)  
> 0);
>
>                 }
>
>
>                 this.connectCallback = connectCallback;
>
>
>
> Error! Filename not specified.
> next generation web conferencing
>
> Prabhu Tamilarasan
> Senior Software Engineer
>
> 675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omnovia.com
>
> ptamilarasan at omnovia.com
>
> T +1.281.500.4065 x 731
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20081104/c7fc941e/attachment.html>


More information about the Red5 mailing list