Hello everybody,
I’m trying to detect in my HTTPProviderBase Module when a stream is publish.
I tried the following implementation :
public class VODlist extends HTTProvider2Base implements IModuleOnStream
with the function
public void onStreamCreate(IMediaStream stream) {
WMSLoggerFactory.getLogger(null).info("DETECT CREATION");
}
the function is never fired.
I also tried with the following implementation.
public class VODlist extends HTTProvider2Base implements IMediaStreamActionNotify2
with the functions
@Override
public void onPlay(IMediaStream stream, String streamName,
double playStart, double playLen, int playReset) {
WMSLoggerFactory.getLogger(null).info("DETECT PLAY");
}
@Override
public void onPublish(IMediaStream stream, String streamName,
boolean isRecord, boolean isAppend) {
WMSLoggerFactory.getLogger(null).info("DETECT PUBLISH");
}
@Override
public void onSeek(IMediaStream stream, double location) {
// TODO Auto-generated method stub
WMSLoggerFactory.getLogger(null).info("DETECT SEEK");
}
@Override
public void onStop(IMediaStream stream) {
// TODO Auto-generated method stub
}
@Override
public void onUnPublish(IMediaStream stream, String streamName,
boolean isRecord, boolean isAppend) {
// TODO Auto-generated method stub
WMSLoggerFactory.getLogger(null).info("DETECT UNPUBLISH");
}
@Override
public void onMetaData(IMediaStream arg0, AMFPacket arg1) {
// TODO Auto-generated method stub
WMSLoggerFactory.getLogger(null).info("DETECT METADATA");
}
@Override
public void onPauseRaw(IMediaStream arg0, boolean arg1, double arg2) {
// TODO Auto-generated method stub
WMSLoggerFactory.getLogger(null).info("DETECT PAUSE");
}
It doesn’t work either.
How can i perform this?
Best regards
Richard