Hi,
We have tested this error extensively, and are on our way to make work-around. We will use HTTPProvider to synchronize consumer and stream publisher.
Here is the code that we use to check if String streamName
stream is published:
IApplication application = vhost.getApplication(applicationName);
List appInstances = application.getAppInstanceNames();
Iterator<String> iterAppInstances = appInstances.iterator();
while (iterAppInstances.hasNext()) {
String appInstanceName = iterAppInstances.next();
IApplicationInstance appInstance = application.getAppInstance(appInstanceName);
if (appInstance == null) continue;
//IMediaStream stream = appInstance.getStreams().getStream(streamName);
boolean isPublished = false;
List<String> streams = appInstance.getStreams().getPublishStreamNames();
for( String name : streams ) {
if (name.equals(streamName)) {
return true;
}
}
}
return false;
This works for RTMP streams but not for cupertino stream. Examining log output I can tell that cupertino packetizer starts after 6 second delay !
-
Is there a way to determine is cupertino packetizer enabled for particular stream ?
-
Is there a way to start cupertino packetizer as soon as possible ?
Please Help.