# wowza switch stream from low to hight when begin playing HLS on anroid 4.0 player

**URL:** <https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [March 29, 2013, 3:28am UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898 "2013-03-29T03:28:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toan\_Xuan](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Toan\_Xuan](https://community.wowza.com/u/Toan_Xuan)\
**Post date:** [March 29, 2013, 3:28am UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898/1 "2013-03-29T03:28:11Z")

</div>

Dear you,

This time. i’m running wowza 3.5 trial for output HLS streaming. I config one smil file :

My client is android device, netword bandwidth : 1000 kbs. When my device begin to play this stream then wowza return streaming from hight quality to low quality. [4M-\>2.3M-\>695 kps]. I want server alway switch streaming from low to hight quality first when begin playing.

i read [https://www.wowza.com/forums/showthread.php?18973-How-to-implement-a-custom-RandomAccessReadOptimizer-class](https://www.wowza.com/forums/showthread.php?18973-How-to-implement-a-custom-RandomAccessReadOptimizer-class) but can not implement for my target. Please help me. Many 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:** [March 29, 2013, 11:36am UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898/2 "2013-03-29T11:36:17Z")

</div>

You can re-arrange the smil to see if that makes a difference. If it doesn’t, there is not a way to change the way the device switches.

Looking at the names of your files, they don’t look like different bit rate versions of the same video. Each video in an ABR set also has to be key frame aligned. Take a look at the Expression 4 Encoder pre-sets in this article.

[https://www.wowza.com/docs/how-to-encode-video-on-demand-content](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)

Richard

---

<div class="post-metadata">

**Author:** ![Toan\_Xuan](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Toan\_Xuan](https://community.wowza.com/u/Toan_Xuan)\
**Post date:** [March 29, 2013, 5:58am UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898/3 "2013-03-29T05:58:17Z")

</div>

thank for your reply, i re-arrange the smil file but client still play streaming from hight to low quality. My files is good for wozza , they has to be key frame aligned.

as you said there is not a way the device switches, I can only optimize android player client and dont have any config and serverside api implements on server??

---

<div class="post-metadata">

**Author:** ![Toan\_Xuan](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@Toan\_Xuan](https://community.wowza.com/u/Toan_Xuan)\
**Post date:** [April 8, 2013, 8:07pm UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898/4 "2013-04-08T20:07:20Z")

</div>

> Hi,
> 
> The order of the streams in the playlist.m3u8 url should match the order in the smil file. You can confirm this by retrieving the playlist.m3u8 url in a browser and then opening the saved file in a text editor.
> 
> As Jason has mentioned, if changing the order does not help then it will be the player that is deciding which bitrate to play first. Wowza just presents a list of urls to the player. Wowza has no control over which url the player will actually request.
> 
> Roger.

Thanks for your reply, i order streams in smil file and it works fine, player choose low bitrate first. I dont think there is simple way to resolve this problem like that. Many thanks. 🙂

---

<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 2, 2013, 11:38am UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898/5 "2013-04-02T11:38:22Z")

</div>

Hi

If re-arranging the .smil file didn’t work then I’m afraid there’s probably no way to do it.

I’d say as a guess that it was designed to give you the best quality possible and as most clients would be using a higher bitrate i.e. from a broadband connection, that’s why it starts with the highest bitrate and works down.

Jason

---

<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 9, 2013, 2:56pm UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898/6 "2013-04-09T14:56:42Z")

</div>

Hi

That’s great, thanks for the update.

Jason

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [April 3, 2013, 11:07am UTC](https://community.wowza.com/t/wowza-switch-stream-from-low-to-hight-when-begin-playing-hls-on-anroid-4-0-player/35898/7 "2013-04-03T11:07:45Z")

</div>

Hi,

The order of the streams in the playlist.m3u8 url should match the order in the smil file. You can confirm this by retrieving the playlist.m3u8 url in a browser and then opening the saved file in a text editor.

As Jason has mentioned, if changing the order does not help then it will be the player that is deciding which bitrate to play first. Wowza just presents a list of urls to the player. Wowza has no control over which url the player will actually request.

Roger.
