<div dir="ltr"><p dir="ltr" style="font-size:12.8px">Hi!<br>My name is David.<br>I'm having some problems with audio playback on Android and I was thinking that maybe you have had the same or similar problem while streaming to Android. </p><p style="font-size:12.8px">I ran across this issue: <a href="https://github.com/karlheyes/icecast-kh/issues/120">https://github.com/karlheyes/icecast-kh/issues/120</a> and that is exactly the problem I've been having. I don't know if this is a official fork of Icecast or a personal fork, but I suspect the same problem exists for the original Icecast.</p><p style="font-size:12.8px">Have you seen the same issue? Did you find a solution for it? </p><p style="font-size:12.8px">If you have seen this issue before, I posted on Androids issue tracker (<a href="https://code.google.com/p/android/issues/detail?id=211838">https://code.google.com/p/android/issues/detail?id=211838</a>). If you are interested, feel free to comment on that issue and say that you have the same problem as well. </p><p style="font-size:12.8px"><span style="font-size:12.8px">A little background information about my application:</span><br></p><p dir="ltr" style="font-size:12.8px">I work with a application that produces audio. The way the application works is that a request are done to a server where the request is handled and then a redirect is done to point to where the audio can be found (and then streamed back to the (often browser) where the initial request came from). <br>Many users are browsing the web through mobiles these days and lately I've discovered that there's some issues with Android's audio playback in their browsers and I'm thinking it can be Stagefright that are the "bad" component, or that I don't supply Stagefright with the correct information which makes it behave bad. </p><p dir="ltr" style="font-size:12.8px">Why I believe Stagefright is behaving bad is because the user-agent "stagefright/1.2 (Linux;Android 4.4.2)" is used and seen in the access logs of the servers, on to the problem:<br>It makes between 1 (which is what I expect) up to a couple of hundreds of requests for the same audio file. <br>When I connect a android device through a proxy server to see the requests made from the device, I can confirm this behavior and determine a pattern on how the device is making the requests.<br>The requests is done in the following pattern: <br>Request 1: trying to determine where the audio file can be found. <br>Request 2: fetching the audio file, which is pointed out be the redirect. (This request is successful, the whole audio file is transferred (at least through the proxy). </p><p dir="ltr" style="font-size:12.8px">If this is done once, everything works as expected, but when the pattern repeats a number of times (1- hundreds) it causes the audio file to load very slowly. I have no idea why this occurs, I have tested to give different headers and http status codes back in the answer that contains the location header (the redirect) without success.</p><p dir="ltr" style="font-size:12.8px">I have tried to look at the source code for where Stagefright are fetching the audio file, but I have not found the correct place. <br><span style="font-size:12.8px">Basically, I'm looking for a way to make Stagefright (android in general) happy with the first response I'm giving it so it doesn't have to fetch the same audio file 2 or more times in a row.</span><br></p><p dir="ltr" style="font-size:12.8px">Many thanks!<br>Best regards,</p><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font face="Lucida Grande, Lucida Sans, Sans-serif" color="#555555" style="font-size:12px">--</font><div style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><font face="Lucida Grande, Lucida Sans, Sans-serif" style="font-size:16px">David Rönn Jansson</font></div><div style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><font face="Lucida Grande, Lucida Sans, Sans-serif" color="#555555" style="font-size:12px">System Developer</font></div><div style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><br></div><div style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><a href="http://www.readspeaker.com/" style="color:rgb(66,139,202);text-decoration:none;background:transparent" target="_blank"><img src="http://www.readspeaker.com/content/email-signature/readspeaker-logo.gif" border="0" alt="ReadSpeaker - The Voice of the Web!" style="border: 0px; vertical-align: middle;"></a></div><div style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(85,85,85)"><br></div><br style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><table style="border-collapse:collapse;border-spacing:0px;max-width:100%;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><tbody><tr valign="top"><td><img src="http://www.readspeaker.com/content/email-signature/icon-email.gif" alt="E:" border="0" align="top" title="Email address" style="border: 0px; vertical-align: middle;"> <span style="color:rgb(255,255,255);font-size:1px"><font face="Lucida Grande, Lucida Sans, Sans-serif">E:</font></span></td><td><a href="mailto:david.ronn-jansson@readspeaker.com" style="color:rgb(85,85,85);text-decoration:none;font-size:12px;background:transparent" target="_blank"><font face="Lucida Grande, Lucida Sans, Sans-serif">david.ronn-jansson@readspeaker.com</font></a></td></tr><tr valign="top"><td><img src="http://www.readspeaker.com/content/email-signature/icon-home.gif" alt="W:" border="0" align="top" title="Website" style="border: 0px; vertical-align: middle;"> <span style="color:rgb(255,255,255);font-size:1px"><font face="Lucida Grande, Lucida Sans, Sans-serif">W:</font></span></td><td><a href="http://www.readspeaker.com/" style="color:rgb(85,85,85);text-decoration:none;font-size:12px;background:transparent" target="_blank"><font face="Lucida Grande, Lucida Sans, Sans-serif">www.readspeaker.com</font></a></td></tr><tr valign="top"><td><img src="http://www.readspeaker.com/content/email-signature/icon-phone.gif" alt="T:" border="0" align="top" title="Telephone" style="border: 0px; vertical-align: middle;"> <span style="color:rgb(255,255,255);font-size:1px"><font face="Lucida Grande, Lucida Sans, Sans-serif">T:</font></span></td><td><span style="color:rgb(85,85,85);font-size:12px"><font face="Lucida Grande, Lucida Sans, Sans-serif">+46 (0)18 60 44 41</font></span></td></tr><tr valign="top"><td><img src="http://www.readspeaker.com/content/email-signature/icon-location.gif" alt="A:" border="0" align="top" title="Address" style="border: 0px; vertical-align: middle;"> <span style="color:rgb(255,255,255);font-size:1px"><font face="Lucida Grande, Lucida Sans, Sans-serif">A:</font></span></td><td><span style="color:rgb(85,85,85);font-family:'Lucida Grande','Lucida Sans',sans-serif;font-size:12px">Västa Ågatan 16, 9tr</span><br style="color:rgb(85,85,85);font-family:'Lucida Grande','Lucida Sans',sans-serif;font-size:12px"><span style="color:rgb(85,85,85);font-family:'Lucida Grande','Lucida Sans',sans-serif;font-size:12px">753 09 Uppsala, Sweden</span><span style="color:rgb(85,85,85);font-size:12px"><font face="Lucida Grande, Lucida Sans, Sans-serif"> <br></font></span></td></tr><tr valign="top"><td style="padding-top:10px"><img src="http://www.readspeaker.com/content/email-signature/icon-twitter.gif" alt="" border="0" align="top" title="Twitter" style="border: 0px; vertical-align: middle;"><span style="color:rgb(255,255,255);font-size:1px"><font face="Lucida Grande, Lucida Sans, Sans-serif"></font></span></td><td style="padding-top:10px"><a href="http://twitter.com/ReadSpeaker" style="color:rgb(85,85,85);text-decoration:none;font-size:12px;background:transparent" target="_blank"><font face="Lucida Grande, Lucida Sans, Sans-serif">twitter.com/ReadSpeaker</font></a></td></tr><tr><td colspan="2" style="padding-top:10px"><font face="Lucida Grande, Lucida Sans, Sans-serif" color="#555555" style="font-size:10px">Chamber of Commerce nr: 556747-2047</font></td></tr></tbody></table></div></div></div></div></div></div>
</div>