if ( !( event instanceof IRTMPEvent ) ) {
logger.debug( "skipping non rtmp event: " + event );
return;
}
IRTMPEvent rtmpEvent = (IRTMPEvent) event;
if ( logger.isDebugEnabled() ) {
// logger.debug("rtmp event: " + rtmpEvent.getHeader() + ", " +
// rtmpEvent.getClass().getSimpleName());
}
if ( !( rtmpEvent instanceof IStreamData ) ) {
logger.debug( "skipping non stream data" );
return;
}
if ( rtmpEvent.getHeader().getSize() == 0 ) {
logger.debug( "skipping event where size == 0" );
return;
}
if ( rtmpEvent instanceof VideoData ) {