Skip to content

Commit

Permalink
- upgrade voice to red5 mar 18, 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
ritzalam committed Apr 11, 2018
1 parent 95f8ea0 commit 1d68c02
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
36 changes: 18 additions & 18 deletions bbb-voice/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@ dependencies {
providedCompile 'javax.servlet:servlet-api:2.5@jar'

// Mina
providedCompile 'org.apache.mina:mina-core:2.0.15@jar'
providedCompile 'org.apache.mina:mina-integration-beans:2.0.15@jar'
providedCompile 'org.apache.mina:mina-integration-jmx:2.0.14@jar'
providedCompile 'org.apache.mina:mina-core:2.0.17@jar'
providedCompile 'org.apache.mina:mina-integration-beans:2.0.17@jar'
providedCompile 'org.apache.mina:mina-integration-jmx:2.0.17@jar'

// Spring
providedCompile 'org.springframework:spring-web:4.3.3.RELEASE@jar'
providedCompile 'org.springframework:spring-beans:4.3.3.RELEASE@jar'
providedCompile 'org.springframework:spring-context:4.3.3.RELEASE@jar'
providedCompile 'org.springframework:spring-core:4.3.3.RELEASE@jar'
providedCompile 'org.springframework:spring-web:4.3.12.RELEASE@jar'
providedCompile 'org.springframework:spring-beans:4.3.12.RELEASE@jar'
providedCompile 'org.springframework:spring-context:4.3.12.RELEASE@jar'
providedCompile 'org.springframework:spring-core:4.3.12.RELEASE@jar'

providedCompile 'org.red5:red5-server:1.0.8-M13@jar'
providedCompile 'org.red5:red5-server-common:1.0.8-M13@jar'
providedCompile 'org.red5:red5-io:1.0.8-M13@jar'
providedCompile 'org.red5:red5-server:1.0.10-M5@jar'
providedCompile 'org.red5:red5-server-common:1.0.10-M5@jar'
providedCompile 'org.red5:red5-io:1.0.10-M5@jar'

// Logging
providedCompile 'ch.qos.logback:logback-core:1.1.7@jar'
providedCompile 'ch.qos.logback:logback-classic:1.1.7@jar'
providedCompile 'org.slf4j:log4j-over-slf4j:1.7.21@jar'
providedCompile 'org.slf4j:jcl-over-slf4j:1.7.21@jar'
providedCompile 'org.slf4j:jul-to-slf4j:1.7.21@jar'
providedCompile 'org.slf4j:slf4j-api:1.7.21@jar'
providedCompile 'ch.qos.logback:logback-core:1.2.3@jar'
providedCompile 'ch.qos.logback:logback-classic:1.2.3@jar'
providedCompile 'org.slf4j:log4j-over-slf4j:1.7.25@jar'
providedCompile 'org.slf4j:jcl-over-slf4j:1.7.25@jar'
providedCompile 'org.slf4j:jul-to-slf4j:1.7.25@jar'
providedCompile 'org.slf4j:slf4j-api:1.7.25@jar'

// Needed for the JVM shutdown hook but needs to be put into red5/lib dir.
// Otherwise we get exception on aop utils class not found.
providedCompile 'org.springframework:spring-aop:4.3.3.RELEASE@jar'
providedCompile 'org.springframework:spring-aop:4.3.12.RELEASE@jar'
compile 'aopalliance:aopalliance:1.0@jar'

// Testing
Expand All @@ -61,7 +61,7 @@ dependencies {
compile 'org.apache.commons:commons-pool2:2.3'
compile 'com.google.code.gson:gson:2.5'

compile 'org.apache.commons:commons-lang3:3.5'
compile 'org.apache.commons:commons-lang3:3.7'
compile 'org.bigbluebutton:bbb-common-message_2.12:0.0.19-SNAPSHOT'

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class AudioBroadcastStream implements IBroadcastStream, IProvider, IPipeC
// Codec handling stuff for frame dropping
private StreamCodecInfo streamCodecInfo;
private Long creationTime;
private Long startTime;

public AudioBroadcastStream(String name) {
publishedStreamName = name;
Expand Down Expand Up @@ -137,6 +138,8 @@ public IScope getScope() {

public void start() {
log.debug("Starting AudioBroadcastStream()");
creationTime = System.currentTimeMillis();
startTime = creationTime;
}

public void stop() {
Expand Down Expand Up @@ -205,4 +208,8 @@ public void dispatchEvent(IEvent event) {
public long getCreationTime() {
return creationTime != null ? creationTime : 0L;
}

public long getStartTime() {
return startTime != null ? startTime : 0L;
}
}
9 changes: 8 additions & 1 deletion bbb-voice/src/main/java/org/red5/app/sip/AudioStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public class AudioStream implements IBroadcastStream, IProvider, IPipeConnection
// Codec handling stuff for frame dropping
private StreamCodecInfo streamCodecInfo;
private Long creationTime;

private Long startTime;

public AudioStream(String name) {
publishedStreamName = name;
livePipe = null;
Expand Down Expand Up @@ -107,6 +108,8 @@ public IScope getScope() {

public void start() {
log.trace("start()");
creationTime = System.currentTimeMillis();
startTime = creationTime;
}

public void stop() {
Expand Down Expand Up @@ -174,4 +177,8 @@ public void dispatchEvent(IEvent event) {
public long getCreationTime() {
return creationTime != null ? creationTime : 0L;
}

public long getStartTime() {
return startTime != null ? startTime : 0L;
}
}

0 comments on commit 1d68c02

Please sign in to comment.