Skip to content

Commit 9e20e19

Browse files
author
Sam Steele
committed
Revert the streaming change for Gingerbread and older
1 parent d2fa575 commit 9e20e19

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

app/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="fm.last.android" android:versionCode="61" android:versionName="1.9.9">
3+
package="fm.last.android" android:versionCode="62" android:versionName="1.9.9.1">
44
<uses-permission android:name="android.permission.INTERNET" />
55
<uses-permission android:name="android.permission.WAKE_LOCK" />
66
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

app/src/fm/last/android/player/RadioPlayerService.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -728,13 +728,15 @@ private void playTrack(RadioTrack track, MediaPlayer p) {
728728
track.setLocationUrl(newURL.toString());
729729
}
730730
String url = track.getLocationUrl();
731-
//Stream through a proxy to enforce one connection per track
732-
if (proxy == null) {
733-
proxy = new StreamProxy();
734-
proxy.init();
735-
proxy.start();
731+
//Stream through a proxy to enforce one connection per track (Honeycomb+)
732+
if(Integer.decode(Build.VERSION.SDK) >= 11) {
733+
if (proxy == null) {
734+
proxy = new StreamProxy();
735+
proxy.init();
736+
proxy.start();
737+
}
738+
url = String.format("http://127.0.0.1:%d/%s",proxy.getPort(), url);
736739
}
737-
url = String.format("http://127.0.0.1:%d/%s",proxy.getPort(), url);
738740
if(!wifiLock.isHeld())
739741
wifiLock.acquire();
740742
if(!wakeLock.isHeld())

0 commit comments

Comments
 (0)