webrtmp icon indicating copy to clipboard operation
webrtmp copied to clipboard

myNetConnectionObject.call

Open ciaoamigoschat opened this issue 2 years ago • 14 comments

Hi great work thanks. Then tell me how can I also call a remoteMethod or receive a call remotely. In as3 it was the NetConnection.call(). Thank you

ciaoamigoschat avatar Jul 27 '23 07:07 ciaoamigoschat

It should not be a problem, but I have only nginx rtmp module, this is not able to handle remote calls. Have you a testserver (RED5 or similar) then I can test it.

aeinstein avatar Jul 27 '23 11:07 aeinstein

I have Adobe Media Servers. But in production. I can create a server side application that sends and receives calls to you. If you give me the ok today I'll prepare it for you.

ciaoamigoschat avatar Jul 27 '23 12:07 ciaoamigoschat

News?

ciaoamigoschat avatar Aug 02 '23 13:08 ciaoamigoschat

Yeah, I can try it. Install an Server App and give me the link. But it can take some days. I'm very busy

aeinstein avatar Aug 02 '23 21:08 aeinstein

Thank you for your availability. Here is my AS3 code that connects to my server.

var sephiroth:Object = new Object(); var amigoschat:NetConnection; amigoschat=new NetConnection(); amigoschat.connect("rtmp://51.75.147.86/test/"+'room1','Pippo','2'); amigoschat.client =sephiroth; amigoschat.addEventListener(NetStatusEvent.NET_STATUS, netStatuschat); function netStatuschat(error:NetStatusEvent) { trace(error.info.code) if (error.info.code == 'NetConnection.Connect.Success') { amigoschat.call('message', null, "Hi test"); } }

sephiroth.receive_message = function(msg:Object) { trace(msg) }

Once the connection is established, it calls the service amigoschat.call('message', null, 'Hi test');. The service responds by calling sephiroth.receive_message. Naturally, you can also call the service from a button or wherever you prefer. amigoschat.call('message', null, 'Hi test');."

ciaoamigoschat avatar Aug 04 '23 12:08 ciaoamigoschat

cool, I have just finished my last project. Next week I`ll see what I can do for you. I will write you when the test scenario is running

aeinstein avatar Aug 11 '23 17:08 aeinstein

Thank you again so much.

ciaoamigoschat avatar Aug 23 '23 09:08 ciaoamigoschat

Hi, I am ready to start. After reading your requirements, I will start with implementation of the NetConnection.call(). I will also implement SharedObjects, I have used them a lot in the past. BTW: Parsing of a Data Message is already implemented. Do you use AMF0 or AMF3 ??? Hope AMF0 because AMF3 is not implemented reflecting to the complexity of the login process.

Ok I just see that you can already make a call from JS.

I will test this with your Server can you installl and config websockify as described in the readme ??

aeinstein avatar Aug 28 '23 16:08 aeinstein

Hi, thanks so much. AMF0 is also fine. I can't install websockify on that server as it's a very old Centos. I should get a new server. Can't launch websockify locally? Pointing to my server?

ciaoamigoschat avatar Aug 29 '23 06:08 ciaoamigoschat

I will install it on my server pointing to yours. pls accept incoming from 95.216.12.85

aeinstein avatar Aug 29 '23 17:08 aeinstein

Hi, I tried and it accepts every connection. Both AMF0 and AMF3. ... amigoschat.objectEncoding = flash.net.ObjectEncoding.AMF0; amigoschat.connect("rtmp://51.75.147.86/test/"+'room1','Pippo','2'); ....

ciaoamigoschat avatar Aug 30 '23 13:08 ciaoamigoschat

Hi, how's it going? You managed to connect to my server

ciaoamigoschat avatar Sep 13 '23 06:09 ciaoamigoschat

sorry dude, I forget I am now on vacation. I have started the tests, now I am in France

aeinstein avatar Sep 15 '23 19:09 aeinstein

Thanks for your availability of help. :)

ciaoamigoschat avatar Sep 18 '23 07:09 ciaoamigoschat