Two Modules can implement IMediaStreamActionNotify3 interface, and use the onPublish event. The Module placed above will run first.
For methods that you override, like play and publish, you have to include this line last.
Code:
invokePrevious(client, function, params);
Because Wowza will determine command priority based on the order of the modules in the module list. Wowza by default will
only invoke the last module that defines a given command. This method enables you to call the method by the same name in
the previous module that defines that command. For example if you have three modules defined in the module list;
ModuleCore, ModuleSecureURLParams and ModuleMyModule and all three modules implement the "play" command. When
"play" is invoked it will invoke the "play" command in ModuleMyModule. If in ModuleMyModule you would like to call the
"play" command in ModuleSecureURLParams, you can call: invokePrevious(this, client, function, params); and it will invoke
the "play" command defined in ModuleSecureURLParams.
As in this example.
Richard