Skip to main content
July 27, 2010
Question

Why my server side actionscript for FMS is not working as expected ?

  • July 27, 2010
  • 1 reply
  • 793 views

vid2.asc:

application.onAppStart = function()
{
  trace
("The Broadcast has begun!");
};

application
.onConnect = function(client,parameters)
{
  application
.acceptConnection(client);
  trace
(" has been accepted");
}

application
.onDisconnect = function(client)
{
  trace
(" has left.");
}

But in the admin console:

Unloaded application instance vid2/recordings
The Broadcast has begun!
Unloaded application instance vid2/recordings
The Broadcast has begun!
Unloaded application instance vid2/recordings

Why is onConnect and onDisconnect event not activated on server side at all(the client side script connects by nc.connect and is functioning well)?

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    July 27, 2010

    Its working fine on my side.. Which FMS version you are using? Also are you getting the NetConnection Success on the client side and are able to play some stream after connection(if connection succeed)?

    July 27, 2010

    Thanks for the reply!    

    Yes,

    the client side is working, it's just the trace

    output that's not as expected.

    Participating Frequently
    July 27, 2010

    Can you check your application logs and see if you can see traces there - you can find logs here :- <installDirectory>/logs/_defaultVHost_/vid2/recordings. You will file named application.00.log - open it and see if you can see traces here.