| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|---|
| 3 | <beans> |
|---|
| 4 | |
|---|
| 5 | <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
|---|
| 6 | <property name="location" value="/WEB-INF/red5-web.properties" /> |
|---|
| 7 | </bean> |
|---|
| 8 | |
|---|
| 9 | <bean id="web.context" class="org.red5.server.Context" |
|---|
| 10 | autowire="byType" /> |
|---|
| 11 | |
|---|
| 12 | <bean id="web.scope" class="org.red5.server.WebScope" |
|---|
| 13 | init-method="register"> |
|---|
| 14 | <property name="server" ref="red5.server" /> |
|---|
| 15 | <property name="parent" ref="global.scope" /> |
|---|
| 16 | <property name="context" ref="web.context" /> |
|---|
| 17 | <property name="handler" ref="web.handler" /> |
|---|
| 18 | <property name="contextPath" value="${webapp.contextPath}" /> |
|---|
| 19 | <property name="virtualHosts" value="${webapp.virtualHosts}" /> |
|---|
| 20 | </bean> |
|---|
| 21 | |
|---|
| 22 | <bean id="web.handler" |
|---|
| 23 | class="com.videowhisper.Application" |
|---|
| 24 | singleton="true" > |
|---|
| 25 | <property name="withLogging" value="${withLogging}" /> |
|---|
| 26 | <property name="logFilename" value="${logFilename}" /> |
|---|
| 27 | <property name="allowedDomains" value="${allowedDomains}" /> |
|---|
| 28 | <property name="recordEverything" value="${recordEverything}" /> |
|---|
| 29 | <property name="acceptPlayers" value="${acceptPlayers}" /> |
|---|
| 30 | </bean> |
|---|
| 31 | |
|---|
| 32 | <bean id="streamFilenameGenerator" |
|---|
| 33 | class="com.videowhisper.CustomFilenameGenerator" > |
|---|
| 34 | <property name="recordPath" value="${recordPath}" /> |
|---|
| 35 | <property name="playbackPath" value="${playbackPath}" /> |
|---|
| 36 | <property name="absolutePath" value="${absolutePath}" /> |
|---|
| 37 | </bean> |
|---|
| 38 | |
|---|
| 39 | </beans> |
|---|