NetConnection

Below is a comparison of the NetConnection information objects (supported by the Flash Player 6 and greater) sent by RTMPy vs. Flash Media Server.

Tested with

Flash Media Server 2.0.3 on Ubuntu 6.1 and the publisher application against RTMPy:

  • 2007-06-19: r21

NetConnection information objects

http://red5.nl/images/help.png - couldn't reproduce or didn't test this yet
http://red5.nl/images/accept.png - tested and working
http://red5.nl/images/bug.png - doesn't work as expected
http://red5.nl/images/cross.png - doesn't work at all

The following messages notify the Flash Player when certain NetConnection activities occur:

Code property Level property Meaning FMS RTMPy Comments
NetConnection.Call.Prohibited Error An Action Message Format (AMF) operation is prevented for security reasons. Either the AMF URL is not in the same domain as the SWF file, or the AMF server does not have a policy file that trusts the domain of the SWF file. http://red5.nl/images/accept.png http://red5.nl/images/help.png
NetConnection.Call.BadVersion Error Packet encoded in an unidentified format. http://red5.nl/images/accept.png http://red5.nl/images/help.png
NetConnection.Call.Failed Error The NetConnection.call() method was not able to invoke the server-side method or command. http://red5.nl/images/accept.png http://red5.nl/images/help.png
NetConnection.Connect.AppShutdown Error The application has been shut down (for example, if the application is out of memory resources and must be shut down to prevent the server from crashing) or the server has been shut down. http://red5.nl/images/help.png http://red5.nl/images/help.png
NetConnection.Connect.Closed Status The connection was successfully closed. http://red5.nl/images/accept.png http://red5.nl/images/help.png
NetConnection.Connect.Failed Error The connection attempt failed; for example, the server is not running. http://red5.nl/images/accept.png http://red5.nl/images/accept.png Client side
NetConnection.Connect.Rejected Error The client does not have permission to connect to the application, or the application expected different parameters from those that were passed, the application specifically rejected the client, or the application doesn't exist on the server. http://red5.nl/images/accept.png http://red5.nl/images/help.png
NetConnection.Connect.Success Status The connection attempt succeeded. http://red5.nl/images/accept.png http://red5.nl/images/help.png
NetConnection.Connect.InvalidApp Error The application name specified during connect is invalid. http://red5.nl/images/accept.png http://red5.nl/images/help.png