Flash Media Server Developer Documentation

application.onUnpublish()

application.onUnpublish = function (clientObj, streamObj){}

Invoked when a client stops publishing a stream to an application. Use this event handler with application.onPublish()to send traffic to other servers when you're building a large-scale, live broadcasting application.

Note: You cannot change Client object properties in this handler.

Availability

Flash Media Interactive Server 3 and Flash Media Development Server 3

Parameters

clientObj A Client object; the client publishing the stream to the application.

streamObj A Stream object; the stream being published to the application.

Returns

Server ignores any return value.

Example

For a complete client-side and server-side example, see Publish from server to server in Adobe Flash Media Server Developer Guide.