# How can i publish a stream to an other application?

**URL:** <https://community.wowza.com/t/how-can-i-publish-a-stream-to-an-other-application/50812>\
**Category:** Wowza Developer Dojo\
**Created:** [February 24, 2018, 5:45pm UTC](https://community.wowza.com/t/how-can-i-publish-a-stream-to-an-other-application/50812 "2018-02-24T17:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jens\_Kruppa](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jens\_Kruppa](https://community.wowza.com/u/Jens_Kruppa)\
**Post date:** [February 24, 2018, 5:45pm UTC](https://community.wowza.com/t/how-can-i-publish-a-stream-to-an-other-application/50812/1 "2018-02-24T17:45:57Z")

</div>

I want to publish a stream from my application ‘test’ to an other application ‘copytest’. I tried the following code, i could play the stream from ‘copytest’, but it was no video and no audio.

```auto
           
IVHost vhost = VHostSingleton.getInstance(VHost.VHOST_DEFAULT);
                    
publisher = Publisher.createInstance(vhost, "copytest");

//publisher.publish("video");
publisher.publish("video", "live");
                    
                    
long startTime = System.currentTimeMillis();
provider = new PublishingProviderLive(publisher, startTime, "myStream");
//provider = new PublishingProviderMediaReader(publisher, startTime, "mp4:sample.mp4");
provider.setRealTimeStartTime(startTime);

```

What can i do?

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [February 25, 2018, 4:36pm UTC](https://community.wowza.com/t/how-can-i-publish-a-stream-to-an-other-application/50812/2 "2018-02-25T16:36:49Z")

</div>

Hello,

Thanks for contacting the Wowza Community. Here is an article on duplicating streams to another application. Can you review this article and setup your environment this way?

[https://www.wowza.com/docs/how-to-duplicate-streams-to-another-application-instance-moduleduplicatestreams](https://www.wowza.com/docs/how-to-duplicate-streams-to-another-application-instance-moduleduplicatestreams)

regards  
Jermaine
