} else if (rtmpEvent instanceof Notify) {
// store the metadata
Notify notifyEvent = (Notify) rtmpEvent;
if (metaData == null && notifyEvent.getHeader().getDataType() == Notify.TYPE_STREAM_METADATA) {
try {
metaData = notifyEvent.duplicate();
} catch (Exception e) {
log.warn("Metadata could not be duplicated for this stream", e);
}
}
eventTime = rtmpEvent.getTimestamp();