proxy.start(id, "live", null);
streamingProxyMap.put(publishName, proxy);
stream.addStreamListener(new IStreamListener() {
public void packetReceived(IBroadcastStream stream, IStreamPacket packet) {
try {
RTMPMessage m = RTMPMessage.build((IRTMPEvent)packet, packet.getTimestamp());
proxy.pushMessage(null, m);
} catch (Exception e) {
log.error("Exception while sending proxy message", e);
}
}