# Push Publishing AddOn package to push stream to CDNs and service providers

**URL:** <https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [September 21, 2010, 4:06pm UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100 "2010-09-21T16:06:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [September 21, 2010, 4:06pm UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/1 "2010-09-21T16:06:55Z")

</div>

[https://www.wowza.com/docs/how-to-push-streams-to-cdns-and-other-services-push-publishing](https://www.wowza.com/docs/how-to-push-streams-to-cdns-and-other-services-push-publishing)

---

<div class="post-metadata">

**Author:** ![Denis\_Chetverikov](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Denis\_Chetverikov](https://community.wowza.com/u/Denis_Chetverikov)\
**Post date:** [September 22, 2010, 6:23pm UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/2 "2010-09-22T18:23:04Z")

</div>

Hi I am trying to use this AddOn to publish to BitGravity with my custom module.

Seems it works but I have doubts about some lines in the logs. Please, have a look.

Does the PingResult.onResult should return false? Is it ok?

I tried the same code with my local WMS and there was true result on the ping and with WMS I had the only ping line in the logs.

Here is the logs when connecting to Bitgravity

[PHP]

INFO server comment - PushPublisher#IdleHandler.create

INFO server comment - PushPublisher.addSession: {[0]: 1028147850 }

INFO server comment - PushPublisher.sessionOpened:

INFO server comment - PushPublisher.callConnect[rtmp://rtp1.cdg1.bitgravity.com:1935/rtmp/push/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/live/feed01]: rtmp/push

INFO server comment - PushPublisher#ConnectResult.connect[rtmp://rtp1.cdg1.bitgravity.com:1935/rtmp/push/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/live/feed01]: result: NetConnection.Connect.Success description:Connection succeeded.

INFO server comment - PushPublisher#StreamCreateResult.onResult[rtmp://rtp1.cdg1.bitgravity.com:1935/rtmp/push/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/live/feed01]: publishStream: com.wowza.wms.stream.MediaStreamVODTest@1e883644

INFO server comment - PushPublisher#StreamOnStatus.onCallback[rtmp://rtp1.cdg1.bitgravity.com:1935/rtmp/push/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/live/feed01]: NetStream.Publish.Start

INFO server comment - PushPublisher#IdleHandler.onIdle: validate

INFO server comment - PushPublisher#PingResult.onResult: false

INFO server comment - PushPublisher: ping OK

INFO server comment - PushPublisher#IdleHandler.onIdle: validate

INFO server comment - PushPublisher#PingResult.onResult: false

INFO server comment - PushPublisher: ping OK

INFO server comment - PushPublisher#IdleHandler.onIdle: validate

INFO server comment - PushPublisher#PingResult.onResult: false

INFO server comment - PushPublisher: ping OK

INFO server comment - PushPublisher#IdleHandler.onIdle: validate

INFO server comment - PushPublisher#PingResult.onResult: false

INFO server comment - PushPublisher: ping OK

INFO server comment - PushPublisher#IdleHandler.onIdle: validate

INFO server comment - PushPublisher#PingResult.onResult: false

INFO server comment - PushPublisher: ping OK

INFO server comment - PushPublisher#IdleHandler.onIdle: validate

INFO server comment - PushPublisher#PingResult.onResult: false

INFO server comment - PushPublisher: ping OK

[/PHP]

Here is the log of local connection to the same WMS

[PHP]

INFO stream create - -

INFO stream publish test -

INFO server comment - PushPublisher#IdleHandler.create

INFO server comment - PushPublisher.addSession: {[0]: 900532540 }

INFO server comment - PushPublisher.sessionOpened:

INFO server comment - PushPublisher.callConnect[rtmp://localhost:1935/rtmp/push/test]: rtmp/push

INFO application app-start push rtmp/push

INFO session connect-pending 127.0.0.1 -

INFO session connect 127.0.0.1 -

INFO server comment - PushPublisher#ConnectResult.connect[rtmp://localhost:1935/rtmp/push/test]: result: NetConnection.Connect.Success description:Connection succeeded.

INFO stream create - -

PushPublisher#StreamCreateResult.onResult[rtmp://localhost:1935/rtmp/push/test]: publishStream: com.wowza.wms.stream.MediaStreamVODTest@24be0446

INFO stream publish test -

INFO server comment - PushPublisher#StreamOnStatus.onCallback[rtmp://localhost:1935/rtmp/push/test]: NetStream.Publish.Start

INFO server comment - PushPublisher#IdleHandler.onIdle: validate

INFO server comment - PushPublisher#PingResult.onResult: true

INFO server comment - PushPublisher: ping OK

[/PHP]

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [September 22, 2010, 7:41am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/3 "2010-09-22T07:41:42Z")

</div>

It should return true. Not sure why it is not for BitGravity. There are other heuristics that are used to validate the connection as well. So these are most likely keeping the connection open.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 1, 2010, 5:15am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/4 "2010-10-01T05:15:51Z")

</div>

It is ready to use. It just requires Java programming and the skills required are not basic. Not sure how else to answer your question. The technology is solid. It takes a bit of work to implement.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 21, 2010, 3:44am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/5 "2010-10-21T03:44:01Z")

</div>

We will consider add this but it is not available at this time. No definitive timeframe as to when we would add this capability.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [November 6, 2010, 4:53pm UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/6 "2010-11-06T16:53:49Z")

</div>

It might work with Highwinds. If you can send a stream from FMLE to Highwinds using authenticaiton without adding any plugin to FMLE then regular RTMP authentication should just work. Give it a try and let us know.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [November 8, 2010, 5:00am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/7 "2010-11-08T05:00:04Z")

</div>

Thanks for the info.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [November 8, 2010, 12:22pm UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/8 "2010-11-08T12:22:59Z")

</div>

I guess there is work to do for authentication. No short term plans to add support. I would continue to check the push publishing addon article to see when Highwinds support is added.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [November 15, 2010, 11:22am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/9 "2010-11-15T11:22:50Z")

</div>

Was this a question? I guess I did not understand the question. Can you explain in detail the problem.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [December 21, 2010, 9:37am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/10 "2010-12-21T09:37:17Z")

</div>

Do you have this working when using FMLE. You should be able to use this same connection info to publish using FMLE, right? Does that work? I might use that to try and debug the issue. Get that working first.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [December 21, 2010, 11:26am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/11 "2010-12-21T11:26:04Z")

</div>

Sorry, did not mean anything by my suggestions. Just trying to find a way to debug why it is not working. Seemed like FMLE was a decent way to debug.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [December 28, 2010, 5:59am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/12 "2010-12-28T05:59:58Z")

</div>

I think the value you are talking about is in Application.xml. It is the RTP/RTSPSessionTimeout.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [January 11, 2011, 5:26am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/13 "2011-01-11T05:26:40Z")

</div>

I will need to look into it and get back to you.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [January 11, 2011, 8:36am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/14 "2011-01-11T08:36:00Z")

</div>

> Hi,
> 
> we got a problem with Push Publisher reconnection feature.
> 
> Seems it stop working in case of the destination host getting not resolvable for some reason. In our situation it happens for a short period of time, but the reconnector just stop working.
> 
> ```auto
> 2011-01-11 14:28:30 CET comment server INFO 200 - PushPublisher#IdleHandler.onIdle: validate - - - 66236.427 - - - - - - - - - - - - - - - - - - - - - - - - -
> 2011-01-11 14:28:30 CET comment server INFO 200 - PushPublisher.resetConnection: com.wowza.wms.plugin.pushpublish.protocol.rtmp.PushPublisherRTMPSession@49293945 - - - 66236.426 - - - - - - - - - - - - - - - - - - - - - - - - -
> 2011-01-11 14:28:30 CET comment server INFO 200 - PushPublisher.removeSession: {} -- - 66236.427 - - - - - - - - - - - - - - - - - - - - - - - - -
> 2011-01-11 14:28:30 CET comment server INFO 200 - PushPublisher#IdleHandler.onIdle: validate - - - 66236.427 - - - - - - - - - - - - - - - - - - - - - - - - -
> 2011-01-11 14:28:30 CET comment server INFO 200 - PushPublisher#IdleHandler.create- - - 66236.427 - - - - - - - - - - - - - - - - - - - - - - - - -
> 2011-01-11 14:28:30 CET comment server INFO 200 - PushPublisher.sessionClosed -- - 66236.427 - - - - - - - - - - -- - - - - - - - - - - - - -
> 2011-01-11 14:28:30 CET comment server ERROR 500 - PushPublisher.Reconnector: java.nio.channels.UnresolvedAddressException - - - 66236.427 - - - - - -- - - - - - - - - - - - - - -- - - -
> 
> ```

Re-download the push publishing package and try the new .jar file in the lib folder. I have added a try/catch block to the connection attempt that should make it work better.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [January 21, 2011, 5:34am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/15 "2011-01-21T05:34:20Z")

</div>

Redownload the push publishing package. There is now a new method:

PushPublisherRTMP.setRemoveDefaultAppInstance(removeDefaultAppInstance);

If you set this to true then it should remove the _definst_ part when connecting.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [January 25, 2011, 5:13am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/16 "2011-01-25T05:13:34Z")

</div>

Try surrounding in CDATA tag:

```auto
<Value><![CDATA[http://mycompany.com/myurl]]></Value>

```

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [January 27, 2011, 5:08am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/17 "2011-01-27T05:08:52Z")

</div>

Kind of a complicated to setup. You will need to create a .stream file that points to the orgin stream, start it in the stream manager or StartupStreams.xml then you can use the push publishing module to send it out. Those are the basic steps.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [January 27, 2011, 2:21pm UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/18 "2011-01-27T14:21:36Z")

</div>

You might try:

publisher.setHostname(InetAddress.getByName(“[1.6960364.fme.ustream.tv](http://1.6960364.fme.ustream.tv)”));

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [February 8, 2011, 4:29am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/19 "2011-02-08T04:29:14Z")

</div>

Try stream.sendDirect.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [February 17, 2011, 4:42am UTC](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100/20 "2011-02-17T04:42:51Z")

</div>

Which CDN are you trying to send to. Not all will work. Depends on how they handle security.

Charlie

[Next page](https://community.wowza.com/t/push-publishing-addon-package-to-push-stream-to-cdns-and-service-providers/100.md?page=2)
