I'm setting up a dynamic turn on/off for pushing streams to LLNW, so the client can avoid wowza server restarts and encoder restarts.
I have a pushpublisher set up to push streams to a primary and backup llnw destination, works as expected:
INFO server comment - PushPublisher.sessionOpened[rtmp://ingest01.pri.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]:
INFO server comment - PushPublisher.resetConnection[rtmp://ingest01.pri.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]: com.wowza.wms.plugin.pushpublish.protocol.rtmp.Pus hPublisherRTMPSession@17b4239f
INFO server comment - PushPublisher.sessionClosed[rtmp://ingest01.pri.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]
INFO server comment - PushPublisher.sessionOpened[rtmp://ingest01.pri.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]:
INFO server comment - PushPublisher.sessionOpened[rtmp://ingest01.bak.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]:
INFO server comment - PushPublisher.resetConnection[rtmp://ingest01.bak.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]: com.wowza.wms.plugin.pushpublish.protocol.rtmp.Pus hPublisherRTMPSession@4a523b16
INFO server comment - PushPublisher.sessionClosed[rtmp://ingest01.bak.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]
INFO server comment - PushPublisher.sessionOpened[rtmp://ingest01.bak.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]:
Calling disconnect() on PushPublisherRTMP works as expected:
INFO server comment - ModulePushPublish> StreamNotify.stopPublishers
INFO server comment - PushPublisher.disconnect[rtmp://ingest01.pri.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]: com.wowza.wms.plugin.pushpublish.protocol.rtmp.Pus hPublisherRTMPSession@51e1c25d
INFO server comment - PushPublisher.sessionClosed[rtmp://ingest01.pri.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]
INFO server comment - PushPublisher.disconnect[rtmp://ingest01.bak.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]: com.wowza.wms.plugin.pushpublish.protocol.rtmp.Pus hPublisherRTMPSession@10144efe
INFO server comment - PushPublisher.sessionClosed[rtmp://ingest01.bak.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]
But calling connect() on the same objects (to do a reconnection) doesnt.
INFO server comment - ModulePushPublish> StreamNotify.startPublishers
INFO server comment - ModulePushPublish> StreamNotify.startPublisher test.sdp / 2
INFO server comment - ModulePushPublish> connect 0
INFO server comment - ModulePushPublish> connect 1
This is just the info I have printed for my purposes,
shutdown after calling connect() on publishers which have been disconnected:
INFO stream unpublish test.sdp -
INFO server comment - PushPublisher.disconnect[rtmp://ingest01.pri.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]: null
INFO server comment - PushPublisher.disconnect[rtmp://ingest01.bak.xxx.fmspush.llnw.net:1935/xxx/_definst_/test.sdp]: null
INFO stream destroy test.sdp -
INFO session disconnect 541353355 -
So, it looses the session/auth credentials with disconnect(), but doesn't restore them with connect(). Is there a way to avoid this, or maybe a way to re-authenticate with the existing PushPublisherRTMP instance? What would be the correct way to reconnect the PushPublisherRTMP and continue pushing the stream to LLNW?


Reply With Quote
