Skip to content

Commit 8dbd8eb

Browse files
committed
Bump HTSP lib to 0.0.1a17
* Log queue and signal stats every 10 seconds * Subscribers should ignore messages for unrelated subs
1 parent 93a5031 commit 8dbd8eb

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ repositories {
6868
}
6969

7070
dependencies {
71-
compile 'ie.macinnes.htsp:android-htsp:v0.0.1a15'
71+
compile 'ie.macinnes.htsp:android-htsp:v0.0.1a17'
7272
// Used for testing local HTSP lib builds
7373
// compile(name: 'library-debug', ext: 'aar')
7474
compile fileTree(include: ['*.jar'], dir: 'libs')

app/src/main/java/ie/macinnes/tvheadend/player/HtspDataSource.java

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public int read(byte[] buffer, int offset, int readLength) throws IOException {
121121
Thread.sleep(250);
122122
} catch (InterruptedException e) {
123123
// Ignore.
124-
Log.w(TAG, "Caught InterruptedException, ignoring" ,e);
124+
Log.w(TAG, "Caught InterruptedException, ignoring");
125125
}
126126
}
127127

@@ -176,18 +176,7 @@ public void onSubscriptionStart(@NonNull HtspMessage message) {
176176

177177
@Override
178178
public void onSubscriptionStatus(@NonNull HtspMessage message) {
179-
Log.d(TAG, "Received subscriptionStatus");
180179

181-
final String status = message.getString("status", null);
182-
final String subscriptionError = message.getString("subscriptionError", null);
183-
184-
if (status != null) {
185-
Log.d(TAG, "Subscription Status: " + status);
186-
}
187-
188-
if (subscriptionError != null) {
189-
Log.d(TAG, "Subscription Error: " + subscriptionError);
190-
}
191180
}
192181

193182
@Override
@@ -197,7 +186,12 @@ public void onSubscriptionStop(@NonNull HtspMessage message) {
197186
}
198187

199188
@Override
200-
public void onQueueStatus(@NonNull HtspMessage htspMessage) {
189+
public void onQueueStatus(@NonNull HtspMessage message) {
190+
191+
}
192+
193+
@Override
194+
public void onSignalStatus(@NonNull HtspMessage message) {
201195

202196
}
203197

0 commit comments

Comments
 (0)