changed bbb-voice to use the latest version of red5

This commit is contained in:
Markos Calderon 2011-10-28 13:03:41 -07:00
parent 968a5d7967
commit 0e26498b49
2 changed files with 3 additions and 6 deletions

View File

@ -184,16 +184,14 @@ public class AudioBroadcastStream implements IBroadcastStream, IProvider, IPipeC
break;
}
}
private final RTMPMessage msg = new RTMPMessage();
public void dispatchEvent(IEvent event) {
// log.trace("dispatchEvent(event:{})", event);
if (event instanceof IRTMPEvent) {
IRTMPEvent rtmpEvent = (IRTMPEvent) event;
if (livePipe != null) {
msg.setBody(rtmpEvent);
RTMPMessage msg = RTMPMessage.build(rtmpEvent);
//msg.setBody(rtmpEvent);
if (creationTime == null)
creationTime = (long)rtmpEvent.getTimestamp();

View File

@ -197,8 +197,7 @@ public class AudioStream implements IBroadcastStream, IProvider, IPipeConnection
if (event instanceof IRTMPEvent) {
IRTMPEvent rtmpEvent = (IRTMPEvent) event;
if (livePipe != null) {
RTMPMessage msg = new RTMPMessage();
msg.setBody(rtmpEvent);
RTMPMessage msg = RTMPMessage.build(rtmpEvent);
if (creationTime == null)
creationTime = (long)rtmpEvent.getTimestamp();