Skip to content

Commit

Permalink
Fixed appending for flv. Refactored lots of recording releated code
Browse files Browse the repository at this point in the history
  • Loading branch information
mondain committed Jul 29, 2017
1 parent f44fac1 commit 523a924
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.red5</groupId>
<artifactId>red5-parent</artifactId>
<version>1.0.10-M2</version>
<version>1.0.10-M3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>red5-server</artifactId>
Expand Down
9 changes: 9 additions & 0 deletions src/main/server/conf/red5-common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,19 @@
<property name="arguments" value="4096"/>
</bean>

<!-- Use injection to set the FLV implementation for writing FLV files -->
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod">
<value>org.red5.io.flv.impl.FLVWriter.setFLV</value>
</property>
<property name="arguments" ref="flv.impl"/>
</bean>

<!-- Low level access for recording to file -->
<bean id="fileConsumer" scope="prototype" lazy-init="true" class="org.red5.server.stream.consumer.FileConsumer">
<property name="delayWrite" value="${fileconsumer.delayed.write}"/>
<property name="queueThreshold" value="${fileconsumer.queue.size}"/>
<property name="waitForVideoKeyframe" value="${fileconsumer.wait.for.keyframe}"/>
</bean>

<!-- ClientBroadcastStream and PlaylistSubscriberStream
Expand Down
1 change: 1 addition & 0 deletions src/main/server/conf/red5.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ keyframe.cache.entry.max=500
war.deploy.server.check.interval=600000
fileconsumer.delayed.write=true
fileconsumer.queue.size=120
fileconsumer.wait.for.keyframe=true
subscriberstream.buffer.check.interval=5000
subscriberstream.underrun.trigger=100
subscriberstream.max.pending.frames=10
Expand Down

0 comments on commit 523a924

Please sign in to comment.