# Iterate over incoming streams and get source urls in HTTPProvider

**URL:** <https://community.wowza.com/t/iterate-over-incoming-streams-and-get-source-urls-in-httpprovider/37917>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [October 3, 2014, 4:22pm UTC](https://community.wowza.com/t/iterate-over-incoming-streams-and-get-source-urls-in-httpprovider/37917 "2014-10-03T16:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ego\_van\_Doornik1](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@Ego\_van\_Doornik1](https://community.wowza.com/u/Ego_van_Doornik1)\
**Post date:** [October 3, 2014, 4:22pm UTC](https://community.wowza.com/t/iterate-over-incoming-streams-and-get-source-urls-in-httpprovider/37917/1 "2014-10-03T16:22:39Z")

</div>

Hi,

Is there a way, in a HTTPProvider, to iterate over the incoming streams and get their source urls?

I’d like to check if an incoming stream is already started for an url before starting a new one.

I looked at the sample “How to get detailed server info with an HTTPProvider”, it does not contain the source RTSP url.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [October 14, 2014, 2:46pm UTC](https://community.wowza.com/t/iterate-over-incoming-streams-and-get-source-urls-in-httpprovider/37917/2 "2014-10-14T14:46:31Z")

</div>

Hello

You should be able to iterate through the published streams and obtain the mediacaster stream urls through a similar procedure as follows:

```auto
IApplicationInstance appInstance = vhost.getApplication("[your-app-name]").getAppInstance("[your-app-instance-name]");
List<String> streams = appInstance.getMediaCasterStreams().getMediaCasterNames();
for (String streamName : streams) {
    String url = ((ApplicationInstance)appInstance).internalResolveStreamAlias(streamName);  
    WMSLoggerFactory.getLogger(getClass()).info("*URL: "+url);
}

```

Thanks,

Matt
