+ body.getClass() + " (type " + body.getDataType() + ")");
}
int size = ((IStreamData) body).getData().limit();
if (body instanceof VideoData) {
IVideoStreamCodec videoCodec = null;
if (msgIn instanceof IBroadcastScope) {
IClientBroadcastStream stream = (IClientBroadcastStream) ((IBroadcastScope) msgIn)
.getAttribute(IBroadcastScope.STREAM_ATTRIBUTE);
if (stream != null && stream.getCodecInfo() != null) {
videoCodec = stream.getCodecInfo().getVideoCodec();
}
}
if (videoCodec == null || videoCodec.canDropFrames()) {
if (state == State.PAUSED) {
// The subscriber paused the video
videoFrameDropper.dropPacket(rtmpMessage);
return;
}