# VOD Streaming with Sub Folders

**URL:** <https://community.wowza.com/t/vod-streaming-with-sub-folders/37603>\
**Category:** Wowza Streaming Engine\
**Created:** [November 15, 2011, 2:58pm UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603 "2011-11-15T14:58:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Bushee](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Jim\_Bushee](https://community.wowza.com/u/Jim_Bushee)\
**Post date:** [November 15, 2011, 2:58pm UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603/1 "2011-11-15T14:58:18Z")

</div>

Hi, I’m trying to get ios devices to work with Sub Folders in my directory. I got it to work for Flash. But, not ios. I got it to work with Flash streaming by adding the sub folder to the line with the file location as opposed to the file directory location(which is where I thought it would have worked) So instead of being at the end of the directory name it is at the beginning of the file name. for example

‘provider’: ‘rtmp’,

‘streamer’: ‘rtmp://64.119.133.84:1935/spotvault\_vod’,

‘file’: ‘HD/MP4700\_2997BestVari.mp4’,

‘image’: ‘[http://example.com/thumbs/sintel.jpg](http://example.com/thumbs/sintel.jpg)’,

‘modes’: [

{type: ‘flash’, src: ‘jwplayer/player.swf’},

{

type: ‘html5’,

config: {

‘file’: ‘[http://64.119.133.84:1935/spotvault\_vod/HD/mp4:MP4700\_2997BestVari.mp4/playlist.m3u8](http://64.119.133.84:1935/spotvault_vod/HD/mp4:MP4700_2997BestVari.mp4/playlist.m3u8)’,

‘provider’: ‘video’

}

So I just can’t figure out how to use the sub folder for ios streaming. spotvault is my content folder and HD is my sub folder.

Here is my page [https://www.ucanvu.com/jwwow10\_vespotfolders.html](https://www.ucanvu.com/jwwow10_vespotfolders.html)

it works in ios if I don’t use a sub folder. but, I have so many files and I need to organize them.

Thanks

---

<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:** [November 15, 2011, 8:04pm UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603/2 "2011-11-15T20:04:29Z")

</div>

This is a duplicate post

---

<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:** [November 15, 2011, 9:26pm UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603/3 "2011-11-15T21:26:16Z")

</div>

I answered your other post

> [@Change content directory](http://community.wowza.com/t/-/34561):
>
> Hi, I have a very simple question, how do I change the content directory of the simple video streaming module of wowza. By default the module streams from the “content” folder in the wowza installation directory, I want to place the content in d: and stream from that folder. Thanks

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:** [May 5, 2013, 3:29pm UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603/4 "2013-05-05T15:29:53Z")

</div>

Your example is not right. The correct form is:

protocol://[wowza-address]:1935/[app-name]/_definst_/mp4:[path]/[stream-name]

App instance part is only needed when content is located in a subfolder and you are using one string. HTTP urls are always one string. RTMP players often split the connection part from the stream part, but some don’t and in that case you also need to use _definst_ between the application name and the path.

Richard

---

<div class="post-metadata">

**Author:** ![John\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@John\_Smith](https://community.wowza.com/u/John_Smith)\
**Post date:** [May 5, 2013, 8:15am UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603/5 "2013-05-05T08:15:44Z")

</div>

> I answered your other post
> 
> [Change content directory](http://community.wowza.com/t/-/34561)
> 
> Richard

Hi, if I understand this thread correctly only the html5 streaming url requires a _definst_ before the subfolder name.

For eg, I have a subfolder with vod/sub with mp3 files

rtmpurl - rtmp://wowza/vod/mp3:filename

rtspurl - rtsp://wowza/vod/mp3:filename

but httpurl has to be [http://wowza/mp3:_definst_/vod/mp3:filename](http://wowza/mp3:_definst_/vod/mp3:filename)

This kind of makes it a bit inconsistent for integration. Rather than change url scheme based on where content is, we have to also do it based on whether content is in a subfolder and then vary by player!

To add to the inconsistency just using _definst_ for all the different players does not work.

---

<div class="post-metadata">

**Author:** ![John\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@John\_Smith](https://community.wowza.com/u/John_Smith)\
**Post date:** [May 5, 2013, 7:25pm UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603/6 "2013-05-05T19:25:03Z")

</div>

Ahh ok, I got it wrong.

With that syntax, the _definst_ works for all formats and we dont need to have separate logic in code.

---

<div class="post-metadata">

**Author:** ![Jim\_Bushee](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Jim\_Bushee](https://community.wowza.com/u/Jim_Bushee)\
**Post date:** [November 15, 2011, 3:58pm UTC](https://community.wowza.com/t/vod-streaming-with-sub-folders/37603/7 "2011-11-15T15:58:09Z")

</div>

ok then can you point me to the other post with the answer?

Thanks
