Using the Java API, I am creating several pushPublish instances for my stream. The stream is successfully getting pushed to the destinations. But, I’m not able to see any of them under the Stream Targets page in the Wowza Streaming Engine Manager page. When I use the pushPublishMap.txt method, then these stream targets are showing up on this page. But, when I use the Java API based method, then the stream targets list is empty on that page.
Is there anything that I need to do in order for API based PushPublish to show up there?
Also, could someone kindly tell me what the uses are for the setEntryName() method in the PushPublish instance, and the addPushPublishSession() method in the App Instance? I’ve used them both independently and together as well, but neither of them make any difference to the stream targets page. In fact, the stream gets pushed regardless of calling these methods.
Here is my code:
PushPublishRTMP publisher = new PushPublishRTMP(); publisher.setConnectionFlashVersion(PushPublishRTMP.CURRENTFMLEVERSION); publisher.setAppInstance(appInstance); publisher.setSrcStreamName(streamName); publisher.setHost(hostName); publisher.setPort(1935); publisher.setDstStreamName(streamName); publisher.setDstApplicationName(appName); publisher.setSendOriginalTimecodes(true); publisher.setOriginalTimecodeThreshold(0x100000); publisher.setSendFCPublish(true); publisher.setSendReleaseStream(true); publisher.setSendOnMetadata(true); publisher.setDebugLog(true); publisher.setDebugPackets(false); IMediaStream stream = appInstance.getStreams().getStream(streamName); appInstance.addPushPublishSession(stream, publisher.createPushPublishSession()); publisher.setEntryName(streamName + "_" + Integer.toString((int) Math.ceil(Math.random() * 1000))); publisher.connect();
Any help is very much and truly appreciated.