Wowza Community

PushPublishRTMP class removing querystring from DstStreamName

I’m trying to push an RTMP stream from one application called “relay” to another using a custom module and the com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMP class

...
PushPublishRTMP pushPublishRTMP = new PushPublishRTMP();
pushPublishRTMP.setDstApplicationName("live");
pushPublishRTMP.setDstAppInstanceName("_definst_");
pushPublishRTMP.setDstStreamName("mystream?someparam=somevalue");
pushPublishRTMP.setConnectionFlashVersion(CURRENTFLASHVERSION);
pushPublishRTMP.setSendFCPublish(true);
pushPublishRTMP.setSendReleaseStream(true);
pushPublishRTMP.setSendOnMetadata(true);
pushPublishRTMP.setDebugLog(true);
pushPublishRTMP.connect();
..

The module correctly pushes the stream to the “live” application, but when I look in the Wowza Manager under connected streams for the source application “relay” I can see the stream name with the querystring parameters, but when I look at the destination “live” application that it only show’s “mystream” as the stream name and the querystring has been truncated.

How do I pass the params to the destination application so that they will be received by the publish(IClient, RequestFunction function, AMFDataList params) module in the destination application “live”.

Hi,

You should be able to call client.getQueryStr().toString() to obtain the parameters from the incoming source and then insert it into the pushPublishRTMP session by calling setConnectionQueryStr().

Michelle