Best way to reject a 'publish' event?
For our applications, end-users publish streams from a desktop flash player built into our web app. The names for the streams they publish are given to the flash app by the web app and have various bits of information encoded into the stream name that our FMS server-side action script interprets. For example:
* A globally unique identifier for the stream
* The identifier of the downstream server to which the FMS should reflect the stream
* etc.
One of the things we'd like to do is add some authentication information to the stream name (for example, a timestamp for when the stream name becomes invalid and an md5 hash of the stream name and a server-side secret). Ideally, I'd like to be able to then "authorize" these stream in the application onPublish() event handler and reject the publish if the stream name is determined to be invalid. However, it seems like most of the authentication/authorization hooks are focused at connection and not at publish. Is it possible to reject a publish? For example, should I call application.disconnect() or something?
