Using Flash Media Live Encoder, I can’t disconnect FME to reject publishing.
Like the following
My code
public class MyModule extends ModuleCore implements IModuleOnApp2, IModuleOnConnect, IModuleOnStream {
public static void publish(IClient iClient, RequestFunction requestFunction, AMFDataList amfDataList) {
sendClientOnStatusError(iClient, "NetStream.Publish.Rejected", "Rejected");
iClient.setShutdownClient(true);
}
/*
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
*/
}
Log
Wed Jun 24 2015 19:35:08 : Primary - Network Status: NetStream.Publish.Rejected error Rejected
Wed Jun 24 2015 19:35:08 : Primary - Network Status: NetConnection.Connect.Closed status
Wed Jun 24 2015 19:35:17 : Primary - Disconnected
Wed Jun 24 2015 19:35:18 : Problem publishing at Primary Server. Unable to publish STREAM_NAME stream either due to Network Problem at server, the stream name being used is busy, or you are not authorized to publish to this server. Please check the network connection with server, try publishing with other stream name, or contact your FMS administrator for help.
Why am I unable to disconnect immediately?