# play RTMP stream in edge server

**URL:** <https://community.wowza.com/t/play-rtmp-stream-in-edge-server/40815>\
**Category:** Wowza Streaming Engine\
**Created:** [August 8, 2013, 6:37pm UTC](https://community.wowza.com/t/play-rtmp-stream-in-edge-server/40815 "2013-08-08T18:37:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy\_choode](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@andy\_choode](https://community.wowza.com/u/andy_choode)\
**Post date:** [August 8, 2013, 6:37pm UTC](https://community.wowza.com/t/play-rtmp-stream-in-edge-server/40815/1 "2013-08-08T18:37:43Z")

</div>

I am learning the wowza origin/edge architecture and have doubt in the [article](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater) :

> **To play the stream in Adobe Flash Player (RTMP)**
> 
> Server: rtmp://[wowza-edge-address]:1935/liveedge
> 
> Stream: rtmp://[wowza-origin-address]:1935/liveorigin/_definst_/[stream-name]
> 
> Note: You can substitute the name of a .stream file on the origin server in place of the complex URL in Stream.
> 
> For this, my understanding is, I create a mystream.stream on origin server,
> 
> > **mystream.stream**
> > 
> > rtmp://[wowza-origin-address]:1935/liveorigin/_definst_/[stream-name]
> 
> play the stream from edge server with
> 
> Server: rtmp://[wowza-edge-address]:1935/liveedge
> 
> Stream: mystream.stream
> 
> and work …?
> 
> how could edge server knows where to convert the mystream.stream and get the origin server ip?
> 
> andy\_c

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 8, 2013, 11:29am UTC](https://community.wowza.com/t/play-rtmp-stream-in-edge-server/40815/2 "2013-08-08T11:29:24Z")

</div>

So, it is working but you are just asking why it works?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 8, 2013, 11:35am UTC](https://community.wowza.com/t/play-rtmp-stream-in-edge-server/40815/3 "2013-08-08T11:35:48Z")

</div>

I see. Yes, you play from the edge as you’ve shown if you use the Application.xml /Repeater /OriginURL to point to the origin.

Or you can do it like this:

Server: rtmp://[wowza-edge-address]:1935/liveedge

Stream: origin.stream

Where origin.stream is a .stream file in the content folder of the edge containing a rtmp url like this:

rtmp://[wowza-edge-address]:1935/liveorigin/mystream.stream

This is the [Live Stream Repeater Guide](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

When you use the /OriginURL, Wowza puts that together with the stream name and restreams with the same URL that you would use in the origin.stream file.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 9, 2013, 8:49am UTC](https://community.wowza.com/t/play-rtmp-stream-in-edge-server/40815/4 "2013-08-09T08:49:10Z")

</div>

There is a .stream file on both, as shown in the guide.

Richard

---

<div class="post-metadata">

**Author:** ![andy\_choode](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@andy\_choode](https://community.wowza.com/u/andy_choode)\
**Post date:** [August 9, 2013, 11:54am UTC](https://community.wowza.com/t/play-rtmp-stream-in-edge-server/40815/5 "2013-08-09T11:54:22Z")

</div>

Thanks Richard.

So if I do NOT use the /OriginURL, I could make a .stream on the edge server :

> **origin.stream**
> 
> rtmp://[wowza-origin-address]:1935/liveorigin/_definst_/mystream

then client could play the stream by using

> Server: rtmp://[wowza-edge-address]:1935/liveedge
> 
> Stream: origin.stream

right?

If that’s true, I think the description in the [article](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater) is confused :

> **To play the stream in Adobe Flash Player (RTMP)**
> 
> Server: rtmp://[wowza-edge-address]:1935/liveedge
> 
> Stream: rtmp://[wowza-origin-address]:1935/liveorigin/_definst_/[stream-name]
> 
> Note: You can substitute the name of a .stream file on the **origin** server in place of the complex URL in Stream.

We should put the .stream on edge server rather than origin server

andy\_c
