Hi
I have a server code to listen flash media encoder.
public void onStreamDestroy(IMediaStream stream) {
IMediaStreamActionNotify actionNotify = null;
WMSProperties props = stream.getProperties();
synchronized(props)
{
actionNotify = (IMediaStreamActionNotify)stream.getProperties().get("streamActionNotifier");
}
if (actionNotify != null)
{
stream.removeClientListener(actionNotify);
getLogger().info("removeClientListener: "+stream.getSrc());
}
}
class StreamListener implements IMediaStreamActionNotify2
{
public void onPlay(IMediaStream stream, String streamName, double playStart, double playLen, int playReset)
{
}
public void onMetaData(IMediaStream stream, AMFPacket metaDataPacket)
{
}
public void onPauseRaw(IMediaStream stream, boolean isPause, double location)
{
}
public void onSeek(IMediaStream stream, double location)
{
getLogger().info("onSeek");
}
public void onStop(IMediaStream stream)
{
getLogger().info("onStop By: " + stream.getClientId());
}
public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
{
getLogger().info("onPublish");
}
public void onUnPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
{
getLogger().info("onUNPublish");
}
public void onPause(IMediaStream stream, boolean isPause, double location)
{
getLogger().info("onPause");
}
}
INFO stream stop 2009-07-29 15:28:27 1680587985 202.64.190.66 - 3992 9807454 192.172 mystream1 3 9767079 0 - - mystream1 -
INFO server comment 2009-07-29 15:28:27 - - - - - 501.172 - - - - - - - onStop By: 1680587985
INFO server comment 2009-07-29 15:28:27 - - - - - 501.172 - - - - - - - onStreamDestroy Source: 3
INFO server comment 2009-07-29 15:28:27 - - - - - 501.172 - - - - - - - onStreamDestroy ClientID 1: 1680587985
INFO server comment 2009-07-29 15:28:27 - - - - - 501.172 - - - - - - - IMediaStream Destroy 4: com.wowza.wms.stream.live.MediaStreamLive@7881db
INFO server comment 2009-07-29 15:28:27 - - - - - 501.172 - - - - - - - IMediaStream Destroy 6: mystream1
INFO server comment 2009-07-29 15:28:27 - - - - - 501.172 - - - - - - - removeClientListener: 3
INFO server comment 2009-07-29 15:28:27 - - - - - 501.172 - - - - - - - onStreamDestroy: 3
INFO stream destroy 2009-07-29 15:28:27 1680587985 202.64.190.66 - 3992 9807454 192.172 mystream1 3 9767079 0 - - mystream1 -
INFO session disconnect 2009-07-29 15:28:27 1680587985 202.64.190.66 - 3992 9807454 192.328 - - - - - - 1680587985 -
INFO server comment 2009-07-29 15:28:28 - - - - - 501.188 - - - - - - - onDisconnect: 1680587985
INFO server comment 2009-07-29 15:28:28 - - - - - 501.203 - - - - - - - checkLogin roletype: 2
INFO server comment 2009-07-29 15:28:28 - - - - - 501.234 - - - - - - - onDisconnect: 1680587985
INFO server comment 2009-07-29 15:28:28 - - - - - 501.234 - - - - - - - onDisconnect: 1680587985
There are 2 players to play the stream published by FME. However, after certain minutes (no fixed time), server side calls onStop and onDisconnect automatically to disconnect those 2 players.
FME is still connected and started.
What cause that problem and how should I fix it?
as it is impossible to stop players to play video.