To resume what I have done:
-1 I put the wms-collection-plugin.jar in the dir lib
-2 I put in server.xml:
<ServerListeners>
<!--
<ServerListener>
<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener</BaseClass>
</ServerListener>
-->
<!--
<ServerListener>
<BaseClass>com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerSender</BaseClass>
</ServerListener>
-->
<ServerListener>
<BaseClass>com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher</BaseClass>
</ServerListener>
</ServerListeners>
<VHostListeners>
-3 I create my sstreamschedule.smil:
<smil>
<head>
</head>
<body>
<stream name="StreamA"></stream>
<stream name="StreamB"></stream>
<stream name="StreamC"></stream>
<stream name="StreamD"></stream>
<playlist name="pl1" playOnStream="StreamA" repeat="true" scheduled="2010-12-28 10:15:00">
<video src="mp4:avatar_100.mp4" start="5" length="5"/>
<video src="mp4:avatar_1000.mp4" start="50" length="5"/>
<video src="mp4:avatar_100.mp4" start="150" length="5"/>
</playlist>
<playlist name="pl2" playOnStream="StreamA" repeat="true" scheduled="2010-12-28 10:18:00">
<video src="rtmp://10.11.90.140/demo/France4-t.sdp" start="0" length="-2"/>
</playlist>
<playlist name="pl3" playOnStream="StreamB" repeat="true" scheduled="2010-12-28 10:19:00">
<video src="rtmp://10.11.90.140/demo/sdp:FranceO-t.sdp" start="0" length="-2"/>
</playlist>
<playlist name="pl4" playOnStream="StreamC" repeat="true" scheduled="2010-12-28 10:20:00">
<video src="rtmp://10.11.90.120/demo1/StreamA" start="0" length="-1"/>
</playlist>
<playlist name="pl5" playOnStream="StreamC" repeat="true" scheduled="2010-12-28 10:21:00">
<video src="rtmp://10.11.90.120/demo1/StreamB" start="0" length="-1"/>
</playlist>
<playlist name="pl6" playOnStream="StreamD" repeat="true" scheduled="2010-12-28 10:22:00">
<video src="rtmp://10.11.90.120/demo1/StreamA" start="0" length="-1"/>
</playlist>
<playlist name="pl7" playOnStream="StreamD" repeat="true" scheduled="2010-12-28 10:23:00">
<video src="rtmp://10.11.90.120/demo1/StreamC" start="0" length="-1"/>
</playlist>
</body>
</smil>
I call the good url:
rtmp://10.11.90.120/demo1/StreamA B, C or D
Only vod and StreamA,B,C ,D are played on the same server where this module is configured, other are on 10.11.90.120…
But nothing happens…
Here is debug log when I try StreamA…:
EBUG server comment - open
INFO server comment - handshake0: 1394
INFO server comment - handshake0: 1537
DEBUG server comment - Handshake[1]: length:1382
DEBUG server comment - Handshake[1]: length:1826
DEBUG server comment - Handshake[2]: length:290
DEBUG server comment - cmd: connect
DEBUG server comment - queryStr:
DEBUG server comment - Loading Application.xml: file:///usr/local/WowzaMediaServer/conf/demo1/Application.xml
DEBUG server comment - load module: name:base class:com.wowza.wms.module.ModuleCore
DEBUG server comment - add method (method): publish
DEBUG server comment - add method (method): getVersion
DEBUG server comment - add method (method): getRepeaterOriginUrl
DEBUG server comment - add method (method): getStreamType
DEBUG server comment - add method (method): setRepeaterOriginUrl
DEBUG server comment - add method (method): setStreamType
DEBUG server comment - add method (method): getReferrer
DEBUG server comment - add method (method): getPageUrl
DEBUG server comment - add method (method): setBufferTime
DEBUG server comment - add method (method): getStreamLength
DEBUG server comment - add method (method): getLastStreamId
DEBUG server comment - add method (method): play
DEBUG server comment - add method (method): getLiveStreamPacketizer
DEBUG server comment - add method (method): initLiveStreamRepeating
DEBUG server comment - add method (method): receiveAudio
DEBUG server comment - add method (method): receiveVideo
DEBUG server comment - add method (method): setLiveStreamPacketizer
DEBUG server comment - add method (method): getClientID
DEBUG server comment - add method (method): seek
DEBUG server comment - add method (method): deleteStream
DEBUG server comment - add method (method): createStream
DEBUG server comment - add method (method): initStream
DEBUG server comment - add method (method): pause
DEBUG server comment - add method (method): FCPublish
DEBUG server comment - add method (method): FCSubscribe
DEBUG server comment - add method (method): FCUnPublish
DEBUG server comment - add method (method): FCUnSubscribe
DEBUG server comment - add method (method): FCUnpublish
DEBUG server comment - add method (method): FCUnsubscribe
DEBUG server comment - add method (method): closeStream
DEBUG server comment - add method (method): getStreamBitrate
DEBUG server comment - add method (method): pauseRaw
DEBUG server comment - add method (method): play2
DEBUG server comment - add method (method): releaseStream
DEBUG server comment - add method (method): setBandwidthLimit
DEBUG server comment - load module: name:properties class:com.wowza.wms.module.ModuleProperties
DEBUG server comment - add method (method): getAppInstanceProperty
DEBUG server comment - add method (method): getApplicationProperty
DEBUG server comment - add method (method): getClientProperty
DEBUG server comment - add method (method): getStreamProperty
DEBUG server comment - add method (method): setAppInstanceProperty
DEBUG server comment - add method (method): setApplicationProperty
DEBUG server comment - add method (method): setClientProperty
DEBUG server comment - add method (method): setStreamProperty
DEBUG server comment - load module: name:logging class:com.wowza.wms.module.ModuleClientLogging
DEBUG server comment - add method (method): logDebug
DEBUG server comment - add method (method): logError
DEBUG server comment - add method (method): logInfo
DEBUG server comment - add method (method): logWarn
DEBUG server comment - load module: name:flvplayback class:com.wowza.wms.module.ModuleFLVPlayback
DEBUG server comment - add method (event): onDisconnect
DEBUG server comment - add method (event): onConnect
DEBUG server comment - add method (event): onConnectAccept
DEBUG server comment - add method (event): onConnectReject
DEBUG server comment - add method (method): checkBandwidth
DEBUG server comment - SharedObjectReadAccess: *
DEBUG server comment - SharedObjectWriteAccess: *
DEBUG server comment - StreamReadAccess: *
DEBUG server comment - StreamWriteAccess: *
DEBUG server comment - StreamAudioSampleAccess:
DEBUG server comment - StreamVideoSampleAccess:
DEBUG server comment - explodeStorageDir: =
DEBUG server comment - validateStoragePath: start:
DEBUG server comment - parent: null
DEBUG server comment - explodeStorageDir: ${com.wowza.wms.context.VHostConfigHome}/keys=/usr/local/WowzaMediaServer/keys
DEBUG server comment - validateStoragePath: start: /usr/local/WowzaMediaServer/keys
DEBUG server comment - explodeStorageDir: =
DEBUG server comment - validateStoragePath: start:
DEBUG server comment - parent: null
INFO application app-start _definst_ demo1/_definst_
DEBUG server comment - connect: connectapp=demo1/
DEBUG server comment - connect: connectflashVer=LNX 10,1,102,65
DEBUG server comment - connect: connectswfUrl=undefined
DEBUG server comment - connect: connecttcUrl=rtmp://10.11.90.120/demo1/
DEBUG server comment - connect: connectfpad=false
DEBUG server comment - connect: connectcapabilities=239.0
DEBUG server comment - connect: connectaudioCodecs=3191.0
DEBUG server comment - connect: connectvideoCodecs=252.0
DEBUG server comment - connect: connectvideoFunction=1.0
DEBUG server comment - connect: connectpageUrl=undefined
DEBUG server comment - connect: connectobjectEncoding=3.0
INFO session connect-pending 192.168.40.100 -
INFO session connect 192.168.40.100 -
DEBUG server comment - cmd: createStream
DEBUG server comment - onFlushNotifyClients: false
DEBUG server comment - flushInterval: 75
DEBUG server comment - verboseDebug: false
INFO stream create - -
DEBUG server comment - cmd: play
DEBUG server comment - cmd: setBufferTime
DEBUG session setbuffertime [1584925510,1]: 3000 3000
DEBUG server comment - open
INFO server comment - handshake0: 1537
INFO server comment - ServerHandler.exceptionCaught[[any]:1935:10.11.90.192]: java.io.IOException: Connection reset by peer
DEBUG server comment - sessionClosed: closeConnection: vhost:_defaultVHost_ clientId:450385481
INFO session disconnect 450385481 -
DEBUG server comment - ServerHandler.handleSessionIdle: isDidClose
Do I need to add something in Application.xml ?
Plz help me…