# 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/78>\
**Category:** Wowza Streaming Engine\
**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/78 "2009-09-30T09:28:18Z")\
**Posts on this page:** 5\
**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/78/1 "2009-09-30T09:28:18Z")

</div>

Many Flash based players (FLVPlayback component being one) will use a single RTMP url to both connect to Wowza Media Server and play a particular stream. In reality this url is broken into two pieces; server connection url and stream name. The expanded format of this url assuming the stream is located at the path **[path1]/[path2]/[streamName]** takes the form:

```auto
rtmp://[wowza-ip-or-domain]:[port]/[application]/[appInstance]/[prefix]:[path1]/[path2]/[streamName]

```

Where:

- **[wowza-ip-or-domain]:** Wowza Media Server domain name or ip address

- **[port]:** Is the TCP port to use for the connection _(rtmp & rtmpe = 1935, rtmpt = 80, rtmps = 443)_

- **[application]:** Application name

- **[appInstance]:** Application instance name _(defaults to **definst** )_

- **[prefix]:** Content type prefix _(flv, mp4, mp3 - defaults to flv if omitted)_

- **[path1]/[path2]/[streamName]:** Stream path and name

---

<div class="post-metadata">

**Author:** ![Chris\_Nunciato](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Chris\_Nunciato](https://community.wowza.com/u/Chris_Nunciato)\
**Post date:** [October 15, 2009, 9:01am UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/78/2 "2009-10-15T09:01:46Z")

</div>

Hi there:

I stumbled across this thread while trying to debug an issue, and have a question.

ActionScript offers a couple of ways to play audio – via Sound/SoundChannel and via NetStream. The Flash application we’ve written has been developed using a regular ol’ HTTP server to serve up the audio, with Sound/SoundChannel as the client. For example:

mySound.load(new URLRequest(“[http://mycompany.com/myfile.mp3](http://mycompany.com/myfile.mp3)”));

However we’ve had no luck using this method for connecting to the Wowza server to stream the files using an RTMP-prefixed URL in place of the HTTP URL.

Your thread suggests this is possible, though. Is it? We’d prefer to avoid rewriting the application to use NetStream if possible, since we’ve already written everything using Sound/SoundChannel. Is it possible to connect to a Wowza audio stream using just a URL and Flash’s Sound and SoundChannel classes?

Thanks in advance!

Chris

---

<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:** [October 15, 2009, 5:45pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/78/3 "2009-10-15T17:45:43Z")

</div>

No, sorry, you have to use NetConnection and NetStream in Flash client to stream from Wowza Server.

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:** [March 6, 2011, 1:54pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/78/4 "2011-03-06T13:54:58Z")

</div>

You cannot use rtmp resource this way. Put the file on web server and use http url. If it is on the same web server as the player you can use relative url.

```auto
var req:URLRequest = new URLRequest("myAudioFile.mp3");

```

Richard

---

<div class="post-metadata">

**Author:** ![dfs\_dfsasa](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@dfs\_dfsasa](https://community.wowza.com/u/dfs_dfsasa)\
**Post date:** [March 5, 2011, 9:47pm UTC](https://community.wowza.com/t/rtmp-single-url-format-server-url-and-stream-name-combined-into-single-url/78/5 "2011-03-05T21:47:02Z")

</div>

Is this still valid or can we use flash.media.Sound object to connect to wowza?

This is the code:

s = new Sound();

var req:URLRequest = new URLRequest(“rtmp://wowza-ipaddress/vod/mp3:myAudioFile.mp3”);

var context:SoundLoaderContext = new SoundLoaderContext(5000, true);

s.load(req, context);

I’m getting this error: Security error: #2000 no active security context
