[Red5] RTMPClient - Connect to FMS?
Prabhu Tamilarasan (omNovia)
ptamilarasan at omnovia.com
Fri Aug 22 14:01:34 PDT 2008
Shouldn't make a difference but our FMS 3 servers have been changed so that
the default netconnection objectEncoding is AMF0 instead of the default
AMF3.
_____
http://www.omnovia.com/images/mailicon.gif
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: Friday, August 22, 2008 12:07 PM
To: red5 at osflash.org
Subject: Re: [Red5] RTMPClient - Connect to FMS?
hmm...essentially what we are doing is the same, except that my connect call
is a bit different
this.connect(host, PORT, app, callback);
my app is a string, rather than a map of params...I wonder if FMS 3.0
doesn't like my app (which works for the same application under FMS 2.0/2.5)
On Fri, Aug 22, 2008 at 7:17 AM, Prabhu Tamilarasan (omNovia)
<ptamilarasan at omnovia.com> wrote:
This seems to work for me.
this.connect(this.host, this.port, params, new ConnectionOpenedListener(),
args);
public class ConnectionOpenedListener implements IPendingServiceCallback
{
public void resultReceived(IPendingServiceCall call)
{
if (call.isSuccess())
{
log("Connection opened successully.");
createStream();
}
else
{
log("Failed to open connection: " + call.getException());
}
}
}
_____
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
_____
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of .
Sent: Thursday, August 21, 2008 5:58 PM
To: red5 at osflash.org
Subject: Re: [Red5] RTMPClient - Connect to FMS?
I updated to the latest rev (i think is was 297x), and it seems that the
handshake works with FMS3, however, the connection is never opened. i.e. the
"connect" case below is never encountered. In fact, the resultReceived
method is never called.
Is anyone else experiencing this same issue?
IPendingServiceCallback callback = new IPendingServiceCallback()
{
public void resultReceived(IPendingServiceCall call) {
if ("connect".equals(call.getServiceMethodName())) {
MyClient.this.createStream(this);
} else if
("createStream".equals(call.getServiceMethodName())) {
Integer streamId = (Integer) call.getResult();
MyClient.this.play(streamId, name, 0, DURATION);
}
else {
System.out.println("other state");
}
}
};
On Thu, Aug 21, 2008 at 9:00 AM, Prabhu Tamilarasan (omNovia)
<ptamilarasan at omnovia.com> wrote:
The newest version of RTMPClient (Rev 2969) does correctly handshake with
FMS3.
The version I was using before was Rev 2855 which did not work.
_____
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
_____
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Prabhu Tamilarasan (omNovia)
Sent: Tuesday, August 19, 2008 1:32 PM
To: red5 at osflash.org
Subject: Re: [Red5] RTMPClient - Connect to FMS?
If you pass AMF3 types like bytearrays as connection parameters it uses AMF3
for the parameters.
_____
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
_____
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Mondain
Sent: Tuesday, August 19, 2008 1:18 PM
To: red5 at osflash.org
Subject: Re: [Red5] RTMPClient - Connect to FMS?
If im not mistaken, a connection always starts off as AMF0; so there should
be no reason to force-it.
Paul
On Tue, Aug 19, 2008 at 11:07 AM, Prabhu Tamilarasan (omNovia)
<ptamilarasan at omnovia.com> wrote:
All FMS3 machines now fail again. RTMPClient does not report any connection
errors, just hangs forever. FMS2 always seems to work. A while ago I ran
into a strange problem when using AMF3 which I believe is default now in
FMS3. There is a string caching feature that is part of AMF3 to keep from
having to retransmit the same string, it instead uses an index into a cached
string table. When one machine is restart like the red5 server, next time
FMS will send a string index to red5 but red5 will not have it cached and
will get a null exception when trying to decode the parameters.
Forcing both sides to use AMF0 fixed the issue by avoiding AMF3 and string
caching. Not sure if this is related.
Also, with RTMPClient, is there an easy way to specify the AMF type when
connecting to an FMS server?
_____
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
_____
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of .
Sent: Tuesday, August 19, 2008 12:49 PM
To: red5 at osflash.org
Subject: Re: [Red5] RTMPClient - Connect to FMS?
I am having the same issue, I can can connect to FMS 2.5 without fail, but
FMS 3.0 consistently does not work. My client is a variation of this
example:
http://ptrthomas.wordpress.com/2008/04/19/how-to-record-rtmp-flash-video-str
eams-using-red5/
I have tried using the latest build of Red5, but that doesnt seem to work
either.
On Tue, Aug 19, 2008 at 8:12 AM, Prabhu Tamilarasan (omNovia)
<ptamilarasan at omnovia.com> wrote:
Seems its on my end, the two FMS3 servers I tried both didn't work, but a
third did as well as an FMS2 server.
_____
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
_____
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Mondain
Sent: Monday, August 18, 2008 5:35 PM
To: red5 at osflash.org
Subject: Re: [Red5] RTMPClient - Connect to FMS?
Costin,
I did answer, it is possible. I connected while working with David Foley, he
should have the details. I didnt do anything special on my end (Red5), he
implemented an id or something.
Paul
On Mon, Aug 18, 2008 at 2:54 PM, Costin Tuculescu <twelfth312 at hotmail.com>
wrote:
Hi Prabhu,
I didn't get any replies to my question. Thanks.
Costin
_____
From: ptamilarasan at omnovia.com
To: red5 at osflash.org
Date: Mon, 18 Aug 2008 14:29:25 -0500
Subject: Re: [Red5] RTMPClient - Connect to FMS?
Costin,
Were you able to find out whether or not Red5 RTMPClient can handshake
with FMS3? Anyone else?
Thanks,
_____
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
_____
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Costin Tuculescu
Sent: Tuesday, July 15, 2008 5:13 PM
To: red5 at osflash.org
Subject: Re: [Red5] RTMPClient - Connect to FMS?
Anyone? Thanks.
Costin
_____
From: twelfth312 at hotmail.com
To: red5 at osflash.org
Date: Mon, 14 Jul 2008 12:14:39 -0700
Subject: [Red5] RTMPClient - Connect to FMS?
Howdy list,
Does the RTMPClient that comes with Red5 successfully handshake and connect
to Flash Media Server 3? I'm trying to figure out if its possible to use
that as a starting point for writing a custom client that would connect to
FMS and do stuff. Thanks for any help on this.
Costin
_____
Making the world a better place one message at a time. Check out the i'm
Talkathon.
<http://www.imtalkathon.com/?source=EML_WLH_Talkathon_BetterPlace>
_____
It's a talkathon - but it's not just talk. Check out the i'm Talkathon.
<http://www.imtalkathon.com/?source=EML_WLH_Talkathon_JustTalk>
_____
Talk to your Yahoo! Friends via Windows Live Messenger. Find Out How
<http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_ya
hoo_082008>
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
--
http://gregoire.org/
http://osflash.org/red5
_______________________________________________
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
--
http://gregoire.org/
http://osflash.org/red5
_______________________________________________
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/20080822/0741fa63/attachment-0001.html
More information about the Red5
mailing list