# How to use MPEG-TS to distribute live streams by programmatically ?

**URL:** <https://community.wowza.com/t/how-to-use-mpeg-ts-to-distribute-live-streams-by-programmatically/45707>\
**Category:** Wowza Developer Dojo\
**Created:** [July 23, 2015, 6:58pm UTC](https://community.wowza.com/t/how-to-use-mpeg-ts-to-distribute-live-streams-by-programmatically/45707 "2015-07-23T18:58:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MinChan\_Sike](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@MinChan\_Sike](https://community.wowza.com/u/MinChan_Sike)\
**Post date:** [July 23, 2015, 6:58pm UTC](https://community.wowza.com/t/how-to-use-mpeg-ts-to-distribute-live-streams-by-programmatically/45707/1 "2015-07-23T18:58:49Z")

</div>

Hi,

How can I implement stream push by programmatically for **MPEG-TS stream** push to some target when live-stream is incoming?

[https://www.wowza.com/docs/how-to-use-mpeg-ts-to-distribute-live-streams](https://www.wowza.com/docs/how-to-use-mpeg-ts-to-distribute-live-streams)

[https://www.wowza.com/docs/sample-map-file-entries-for-stream-target-destinations-push-publishing](https://www.wowza.com/docs/sample-map-file-entries-for-stream-target-destinations-push-publishing)

What that mean? How to implement by _java module_?

_myStream={“profile”:“mpegts”, “streamName”:“myStreamMPEGTS”, “host”:“239.1.1.1”, “port”:“10000”, “rtpWrap”:“false”}_

How to use that **_PushPublishMap_** parameter in java?

Thanks & Regards,

MinChanSike

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [July 27, 2015, 10:17am UTC](https://community.wowza.com/t/how-to-use-mpeg-ts-to-distribute-live-streams-by-programmatically/45707/2 "2015-07-27T10:17:34Z")

</div>

Hi,

You may want to check out the new [REST API](https://www.wowza.com/docs/wowza-streaming-engine-rest-api). You can [create Stream Targets](https://www.wowza.com/docs/how-to-use-curl-to-query-wowza-rest-api#pp) quite simply using this method.

Paul
