From 8cd9f3f58fb64bcdec67ee703a3fd6c9f9158acb Mon Sep 17 00:00:00 2001 From: Alexey Parfenov Date: Sat, 21 Dec 2013 15:22:52 -0800 Subject: [PATCH] fix #108: settings InstanceID prevents Samsung TV from throwing 500 Internal Server Error --- .../main/ru/alepar/vuzetty/client/play/upnp/WrappedPlay.java | 3 ++- .../vuzetty/client/play/upnp/WrappedSetTransportUri.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedPlay.java mode change 100644 => 100755 vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedSetTransportUri.java diff --git a/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedPlay.java b/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedPlay.java old mode 100644 new mode 100755 index 1d3b88b..35d9ade --- a/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedPlay.java +++ b/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedPlay.java @@ -3,12 +3,13 @@ import org.fourthline.cling.model.action.ActionInvocation; import org.fourthline.cling.model.message.UpnpResponse; import org.fourthline.cling.model.meta.Service; +import org.fourthline.cling.model.types.UnsignedIntegerFourBytes; import org.fourthline.cling.support.avtransport.callback.Play; public class WrappedPlay extends Wrapped { public WrappedPlay(Service avTransport) { - action = new Play(avTransport) { + action = new Play(new UnsignedIntegerFourBytes("0"), avTransport) { @Override public void success(ActionInvocation invocation) { onSuccess(); diff --git a/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedSetTransportUri.java b/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedSetTransportUri.java old mode 100644 new mode 100755 index da3201e..3703107 --- a/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedSetTransportUri.java +++ b/vuzetty-client-desktop/src/java/main/ru/alepar/vuzetty/client/play/upnp/WrappedSetTransportUri.java @@ -3,6 +3,7 @@ import org.fourthline.cling.model.action.ActionInvocation; import org.fourthline.cling.model.message.UpnpResponse; import org.fourthline.cling.model.meta.Service; +import org.fourthline.cling.model.types.UnsignedIntegerFourBytes; import org.fourthline.cling.support.avtransport.callback.SetAVTransportURI; public class WrappedSetTransportUri extends Wrapped { @@ -11,7 +12,7 @@ public class WrappedSetTransportUri extends Wrapped { public WrappedSetTransportUri(Service avTransport, String url) { this.url = url; - action = new SetAVTransportURI(avTransport, url) { + action = new SetAVTransportURI(new UnsignedIntegerFourBytes("0"), avTransport, url) { @Override public void failure(ActionInvocation invocation, UpnpResponse operation, String defaultMsg) { onFailure(defaultMsg);