# RTMP single url format (server url and stream name combined into single url)

**URL:** <https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [September 30, 2009, 9:28am UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63 "2009-09-30T09:28:18Z")\
**Posts on this page:** 9\
**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 30, 2009, 9:28am UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/1 "2009-09-30T09:28:18Z")

</div>

[https://www.wowza.com/docs/how-to-format-adobe-flash-rtmp-urls](https://www.wowza.com/docs/how-to-format-adobe-flash-rtmp-urls)

---

<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:** [May 26, 2010, 4:14am UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/2 "2010-05-26T04:14:44Z")

</div>

Are you trying to wrap the playlist url in another playlist that you are hosting on a web server. If so, this will not work. See my answer to your other post.

Have you tried playing the stream on an iPhone/iPad/iPod touch? All of this does work. The guide for vod playback is here. I would start with Extremists video and get that working. Then move on to your own content:

[http://community.wowza.com/t/-/64](http://community.wowza.com/t/-/64)

Charlie

---

<div class="post-metadata">

**Author:** ![Guillermo\_Revuelta](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@Guillermo\_Revuelta](https://community.wowza.com/u/Guillermo_Revuelta)\
**Post date:** [May 26, 2010, 12:15pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/3 "2010-05-26T12:15:48Z")

</div>

Could you post how would this be in the case of the iphone vod?

I’ve tried with:

```auto
http://[wowzaserver]:1935/vodiphone/_definst_/mp4:subfolder/video.mp4/playlist.m3u8

```

and

```auto
http://[wowzaserver]:1935/vodiphone/_definst_/subfolder/video.mp4/playlist.m3u8

```

but it doesn’t generate the list with the .ts. It enteres in a short of loop, always returning the original string with the ?wowzasessionid=XXXXXXXX

Thanks

---

<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:** [May 26, 2010, 3:18am UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/4 "2010-05-26T03:18:01Z")

</div>

That is how it works. The first request will generate a second playlist with the session id added. It is then the next request with the session id that will lead to the playlist with the ts chunks lised.

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:** [May 26, 2010, 7:07am UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/5 "2010-05-26T07:07:51Z")

</div>

I guess I would do a bit of crawl, walk, run. First, try video on demand playback as prescribed by the vod tutorial I referenced. Next, create a subfolder named **videos** and copy Extremists.m4v into this folder and use the URL:

```auto
http://[wowza-ip-address]:1935/vod/_definst_/mp4:videos/Extremists.m4v/playlist.m3u8

```

See if that works. It should just work. That is the proper way to do it. Then branch from there.

Charlie

---

<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 5, 2010, 3:15pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/6 "2010-08-05T15:15:51Z")

</div>

Not sure why this is repeated in this thread. Let’s go back [here](https://www.wowza.com/forums/showthread.php?t=6634#3)

Richard

---

<div class="post-metadata">

**Author:** ![Guillermo\_Revuelta](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@Guillermo\_Revuelta](https://community.wowza.com/u/Guillermo_Revuelta)\
**Post date:** [May 26, 2010, 12:19pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/7 "2010-05-26T12:19:54Z")

</div>

the second list doesn’t return either the list with the chunks ☹

---

<div class="post-metadata">

**Author:** ![Guillermo\_Revuelta](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@Guillermo\_Revuelta](https://community.wowza.com/u/Guillermo_Revuelta)\
**Post date:** [May 26, 2010, 3:52pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/8 "2010-05-26T15:52:55Z")

</div>

No, I haven’t (although it’s still possible with some “tuning”). Everything works perfect if the videos are in the root directory of the application (in the example “vodiphone”) but if you try to play them inside a subfolder (“vodiphone/subfolder”), then enters in the loop I was talking about.

I will try a couple of things more, but I’m a bit lost (like the tv series)

Thanks

---

<div class="post-metadata">

**Author:** ![Aydin\_Gungordu](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Aydin\_Gungordu](https://community.wowza.com/u/Aydin_Gungordu)\
**Post date:** [August 5, 2010, 3:44pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/63/9 "2010-08-05T15:44:13Z")

</div>

I have used the above code, and I am unable to intercept the play command.

Here is what I want to do:

-Accept a URI like this :

rtmp://localhost:1935/vodtest/1\_s106\_363.flv/MyExMjgxMDA2NDgyITM2MDBzITQ3OTY2MjU0MTkhMbzeACygMG Z508w8lzdhS30.

or same thing with RTSP

In RTPSessionCreate or onConnect, get that key from the URI, and validate it against our own authentication server. This part is done, and appears to be working correctly.

Now, I need to “override the play command” to remove that key from the end of the URI so it doesn’t go looking in some non-existent folder for the content (there is no MyExMjgxMDA2NDgyITM2MDBzITQ3OTY2MjU0MTkhMbzeACygMG Z508w8lzdhS30 folder)

So I copied the code above, and put some logging in, but it never gets into the play method. It goes into RTPSessionCreate etc. as it is supposed to, then tells me there is no folder.

Help please.
