Hi,
I’m having some problems publishing with Flex client.
I have a custom module that check if user is allowed to publish or not with IMediaStreamActionNotify3
Something like:
public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
{
//logic to check if user is allowed
if(notAllowed){
stream.getClient().setShutdownClient(true);
stream.stopPublishing();
stream.shutdown();
stream.close();
stream.flush();
}
}
The problem is:
Sometime when I pause Flex enconder and unpause to start broadcast again y get this error:
WARN server comment - LiveReceiver.flushPacketizerDelayCommand[live/_definst_/]: Stream name is missing for too long, flushing delayed packet.
and transcoder starts without a stream name and the transcoded files names are “_240p”, “_720p”, “_source”… without stream name.
I was checking this post: https://www.wowza.com/forums/showthread.php?36031-Stream-name-is-missing-for-too-long-flushing-delayed-packet-%28Warn-message%29
and problem seems to be that I don’t override publish method correctly, but I’m using IMediaStreamActionNotify3 I’m not using publish(IClient client, RequestFunction function, AMFDataList params) method to check users, I’m using onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) on IMediaStreamActionNotify3
How can I solve this?
Thank you,
Jose