RTMPConnection conn = (RTMPConnection) streamConn;
// TODO Better manage channels.
// now we use OutputStream as a channel wrapper.
OutputStream o = conn.createOutputStream(stream.getStreamId());
IPipe pipe = new InMemoryPushPushPipe();
pipe.subscribe(new ConnectionConsumer(conn, o.getVideo().getId(), o
.getAudio().getId(), o.getData().getId()), null);
return pipe;
}
}