Welcome Guest Search | Active Topics | Members | Log In | Register

"Unknown * command issued for stream 1" error in new library Options · View
Basel
Posted: Tuesday, March 13, 2012 3:05:41 AM
Rank: Newbie Coder
Groups: Member

Joined: 3/13/2012
Posts: 2
Points: 3
Hello,

I have an issue with the new library (2/26) when trying to invoke a method in the server using this code:

NSMutableArray *args = [NSMutableArray array];
NSString *method = [NSString stringWithString:@"GetUserName"];
[args addObject:[NSString stringWithString:@"name!"]];
[socket invoke:method withArgs:args];

and here's the server method:

newClient.GetUserName=function(Name)
{
trace("------------------>>> "+"begin update")
}

The same code worked correctly using the old library. Is there anything that I need to change in my code (server or client)? I'm always getting "Unknown * command issued for stream 1" error.

slavav
Posted: Wednesday, March 28, 2012 4:58:26 AM

Rank: Apprentice Coder
Groups: Member

Joined: 3/23/2012
Posts: 30
Points: 87
Location: Kiev, Ukraine
Hi Basel,

In last releases of CommLibiOS the signature of invoke method has been changed. Now you MUST specify a responder for invocation result. The responder is an instance of AsynCall class declared in RTMPClient.h.

In your sample, you should implement the method, for example :

-(void)onGetUserName:(id )call {

NSArray *args = [call getArguments];
id result = (args.count) ? [args objectAtIndex:0] : nil;

NSLog(@"onEchoInt = %@\n", result);

}

and use @selector(onGetUserNamet:) when AsynCall instance will be created.

NSMutableArray *args = [NSMutableArray array];
NSString *method = [NSString stringWithString:@"GetUserName"];
[args addObject:[NSString stringWithString:@"name!"]];
[socket invoke:method withArgs:args responder:[AsynCall call:self method:@selector(onGetUserNamet:)]];

When response has been received, onGetUserName method will be executed.

For more information, see demo app ClientInvoke from package CommLibDemos.zip (http://www.themidnightcoders.com/download.html).

Regards,
Slava

______________
Slava Vdodichenko
Midnight Coders, Inc.
slavav@themidnightcoders.com
twofishsman
Posted: Monday, June 25, 2012 6:30:50 PM
Rank: Newbie Coder
Groups: Member

Joined: 6/25/2012
Posts: 2
Points: -285
hi slavav

i get the error code in fms
Unknown echoInt command issued for stream 1 (application ClientInvoke/_definst_).
Unknown echoFloat command issued for stream 1 (application ClientInvoke/_definst_).
seem the connect is fine
and the "[rtmpClientInstance invoke:method withArgs:args]'; is fine
but the "responder:[AsynCall call:self method:@selector(onResult:)]" seem get some problem.

i use your demolibdemos 2.3 2.2 and 2.0
in the your wowza server is fine

i see the youtube is work.
but i try to use the fms4.0 and 4.5 server
it always unable and show the same error code
seem the

my xcode is 4.3.2
and the server code is download the MethodInvocation-servercode.zip
client is using your demolibdemos

did i do any thing less?
or you have any suggest?

thanks.
fenryll
Posted: Sunday, August 05, 2012 2:37:53 AM
Rank: Newbie Coder
Groups: Member

Joined: 7/2/2012
Posts: 5
Points: 15
Hello,

I have the same problem as twofishsman using Flash Media Server 4.5.

Any hint would be appreciated as this is a show stopper in my game development, thanks !

@twofishsman, did you find a solution ?
slavav
Posted: Thursday, August 09, 2012 4:54:47 AM

Rank: Apprentice Coder
Groups: Member

Joined: 3/23/2012
Posts: 30
Points: 87
Location: Kiev, Ukraine
Hi, fenryll, twofishsman,

For executing ClientInvoke & ServerInvoke demo apps from CommLibiOS.zip you need to install the some server-side apps at your fms server, as it's described in http://www.themidnightcoders.com/rtmpdemosetup.

Slava
The Midnight Coders, Inc.
fenryll
Posted: Thursday, August 09, 2012 8:33:12 AM
Rank: Newbie Coder
Groups: Member

Joined: 7/2/2012
Posts: 5
Points: 15
Hello,

I am about to purchase the lib, but...

this is a show stopper for me, and the lack of answer / support images me unsecured..

Who can help ? I have this feature to see working, and also (still have to test) the client call to remote sharedObjects method..
fenryll
Posted: Friday, August 10, 2012 2:10:10 PM
Rank: Newbie Coder
Groups: Member

Joined: 7/2/2012
Posts: 5
Points: 15
slavav wrote:
Hi, fenryll, twofishsman,

For executing ClientInvoke & ServerInvoke demo apps from CommLibiOS.zip you need to install the some server-side apps at your fms server, as it's described in http://www.themidnightcoders.com/rtmpdemosetup.

Slava
The Midnight Coders, Inc.


Hi Slava,

As twofishsman, I am running FMS (Flash Media Server) on the server side, the link you posted is the setup for WebORB.
Anyway, in the CommLib demo package, there is the server side action script "classes" for FMS, most of them are working, except the ClientInvoke .. :(
slavav
Posted: Monday, November 19, 2012 2:52:44 PM

Rank: Apprentice Coder
Groups: Member

Joined: 3/23/2012
Posts: 30
Points: 87
Location: Kiev, Ukraine
Hi everybody,

I've fixed the problem with invocation on fms, you can get lib & demo from github - https://github.com/slavavdovichenko/CommLibDemos

Slava
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.164 seconds.