# Java API to resolve SMIL file (AMLST) - Not working for HDS and HLS

**URL:** <https://community.wowza.com/t/java-api-to-resolve-smil-file-amlst-not-working-for-hds-and-hls/43165>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [April 1, 2015, 2:20pm UTC](https://community.wowza.com/t/java-api-to-resolve-smil-file-amlst-not-working-for-hds-and-hls/43165 "2015-04-01T14:20:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ciro\_Anunciacao](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@Ciro\_Anunciacao](https://community.wowza.com/u/Ciro_Anunciacao)\
**Post date:** [April 1, 2015, 2:20pm UTC](https://community.wowza.com/t/java-api-to-resolve-smil-file-amlst-not-working-for-hds-and-hls/43165/1 "2015-04-01T14:20:06Z")

</div>

Hi everyone,

I developed a module to resolve SMIL file request, just as described in this article ([https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests](https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests)).

It works pretty fine when a SMIL file is requested. By requesting the URL **http://[wowza-server-url]/[application]/[app-instance]/amlst:[prefix]/medialist.smil** it presents the following file:

```auto
<smil>
<head></head>
<body>
	<switch>
		<video src="video1" system-bitrate="1064000" width="1280" height="720">
			<param name="audioBitrate" value="64000" valuetype="data"/>
			<param name="videoBitrate" value="1000000" valuetype="data"/>
		</video>
	</switch>
	<switch>
		<video src="video1_500" system-bitrate="564000" width="1280" height="720">
			<param name="audioBitrate" value="64000" valuetype="data"/>
			<param name="videoBitrate" value="500000" valuetype="data"/>
		</video>
	</switch>
</body>
</smil>

```

But by requesting the URL **http://[wowza-server-url]/[application]/[app-instance]/amlst:[prefix]/manifest.f4m** it presents the following file, with only one stream path:

```auto
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://ns.adobe.com/f4m/1.0">
	<id>video1</id>
	<width>1280</width>
	<height>720</height>
	<mimeType>video/mp4</mimeType>
	<streamType>live</streamType>
	<deliveryType>streaming</deliveryType>
	<bootstrapInfo id="bootstrap1064000" profile="named" url="playlist_b1064000_w1016359968.abst"/>
	<media bootstrapInfoId="bootstrap1064000" width="1280" height="720" bitrate="1039" url="media_b1064000_w1016359968.abst/">
	<metadata>AgAKb25NZXRhRGF0YQMACWZyYW1lcmF0ZQBAPgAAAAAAAAAFd2lkdGgAQJQAAAAAAAAABmhlaWdodABAhoAAAAAAAAAMdmlkZW9jb2RlY2lkAgAEYXZjMQANdmlkZW9kYXRhcmF0ZQBAl3AAAAAAAAAXdmlkZW9rZXlmcmFtZV9mcmVxdWVuY3kAQF4AAAAAAAAADGF1ZGlvY29kZWNpZAIABG1wNGEAD2F1ZGlvc2FtcGxlcmF0ZQBA5YiAAAAAAAANYXVkaW9jaGFubmVscwA/8AAAAAAAAAANYXVkaW9kYXRhcmF0ZQBAUAAAAAAAAAAACQ==</metadata>
	</media>
</manifest>

```

The same thing happens when an HLS file is requested (playlist.m3u8)

Has anyone tried to use this module?

Do I need to apply any extra configuration to make it working for other kind of files besides SMIL files?

Any help would be really appreciated.

---

<div class="post-metadata">

**Author:** ![Humam\_Al\_Barazy](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@Humam\_Al\_Barazy](https://community.wowza.com/u/Humam_Al_Barazy)\
**Post date:** [April 20, 2015, 12:00pm UTC](https://community.wowza.com/t/java-api-to-resolve-smil-file-amlst-not-working-for-hds-and-hls/43165/2 "2015-04-20T12:00:41Z")

</div>

Hi ciroanunciacao,

I have the exact same problem!!! It works fine for RTMP, but HLS is completely failing …

I’m using Wowza Streaming Engine 4.1.2

I can see the call passing to my IMediaStreamNameAliasProvider2 instead of going to IMediaListProvider

The strange thing is that it is working on android/jwplayer HLS but not on iPad/jwplayer so it could be a jwplayer issue?

Thanks

Humam

---

<div class="post-metadata">

**Author:** ![Graeme\_Bull](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Graeme\_Bull](https://community.wowza.com/u/Graeme_Bull)\
**Post date:** [June 29, 2015, 2:17pm UTC](https://community.wowza.com/t/java-api-to-resolve-smil-file-amlst-not-working-for-hds-and-hls/43165/3 "2015-06-29T14:17:55Z")

</div>

Has this been taken care of? I’m still having an issue in 4.2 where the amlst request is returning a 404 for an F4M manifest request.

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [April 29, 2015, 1:56pm UTC](https://community.wowza.com/t/java-api-to-resolve-smil-file-amlst-not-working-for-hds-and-hls/43165/4 "2015-04-29T13:56:49Z")

</div>

Hi,

This will now be handled in the created ticket (126544).

Jason

---

<div class="post-metadata">

**Author:** ![Humam\_Al\_Barazy](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@Humam\_Al\_Barazy](https://community.wowza.com/u/Humam_Al_Barazy)\
**Post date:** [April 23, 2015, 12:48pm UTC](https://community.wowza.com/t/java-api-to-resolve-smil-file-amlst-not-working-for-hds-and-hls/43165/5 "2015-04-23T12:48:10Z")

</div>

Any Support on this one Guys 😕

Thanks,

Humam
