+4
Ülevaatamisel

Streaming stuttering when screen is locked ICS 4.0.4

solo9999 12 aastat tagasi uuendaja Jona (Lead Developer) 12 aastat tagasi 10
Hi,

Running XiiaLive 2.2.4 on ICS 4.0.4, Samsung Galaxy Nexus CDMA. When I lock my screen, audio starts stuttering. Internal stream engine is disabled. Streaming 64 kbps from http://yp.shoutcast.com/sbin/tunein-station.pls?id=337675. Tried install / reinstall. 

Any ideas?

Vasta

Vasta
Ülevaatamisel
There is currently and issue with Android 4.x in regards to streaming. When the screen is shutdown the network speed is slowed down and sometimes completely turned off.  This is most likely the issue.

Related Android bug:
Ülevaatamisel
There is currently and issue with Android 4.x in regards to streaming. When the screen is shutdown the network speed is slowed down and sometimes completely turned off.  This is most likely the issue.

Related Android bug:
Hi Jona,

Isn't this just under wifi? I have this issue under 4G as well.
It might be... but I'm thinking this issue could also be happening via none WiFi connections.  I think this issue is due to an optimization to save battery gone wrong :P

If you are running the beta version of Xiia you could unlock the screen and right away check the show baudrate on the top left side of the player.  If the baudrate is lower than the station bitrate than the network speed dropped while the screen was off...
Dang. I'm having this same problem, too, on both my Nexus S 4G and my new Galaxy Nexus on Sprint...
Can you check the baudrate of the stream right away after you unlock the screen? It should be visible on the player in portrait. If the baudrate is lower than the actual stream bitrate that would indicate a slowdown on the network connection.
OK here's what I noticed. This only happens on the 64kbps stream, works normally on 320kbps. Same stream, different bitrates. Also, it works normally on both 64/320 when streaming via bluetooth in my car, but starts cutting on the 64kpbs if I am listening via plugged in headphones.
Thanks for the details. This seems to be an issue with our AAC streaming. I initially thought this might be related to WiFi not sure why... :P  Have you tried using the Internal Stream engine? How about using XiiaLive Beta? There where some changes on the AAC stream engine that maybe work better?
Hi there,

With the IS engine it stutters even more. Some with the beta...
Ok, thanks for the info. Yes, this is an issue. I'm gonna have to purchase a Nexus phone to optimize this....
Ülevaatamisel
There is currently and issue with Android 4.x in regards to streaming. When the screen is shutdown the network speed is slowed down and sometimes completely turned off.  This is most likely the issue.

Related Android bug:

Update 04/29/12:
Seems like there is a new WIFI locking API changes on Android that need to be made part of XiiaLive for the screen OFF issue. Will add this change to the next beta update to see if things are resolved.

Vasta
Ülevaatamisel
There is currently and issue with Android 4.x in regards to streaming. When the screen is shutdown the network speed is slowed down and sometimes completely turned off.  This is most likely the issue.

Related Android bug:
I have been experiencing this issue with Radio Paradise's AAC streams (radioparadise.com) since upgrading to a Galaxy Nexus (4.0.4). MP3 streams do not exhibit the issue. It is not the wifi power management issue that you suspected because I tried a custom kernel that has an option to disable that and the issue still persists. The internal streaming engine works fine though, so that's a huge plus.
Awesome! Thanks for the info! Will be looking into this. First need to get the phone :)