Fixed tracks being skipped.

This commit is contained in:
Felix Ableitner 2014-01-03 14:49:47 +01:00
parent 8d48f73e07
commit b98df87408

View file

@ -247,6 +247,7 @@ public class RemotePlayService extends Service implements RegistryListener {
*/
@Override
public void play(String uri, String metadata) throws RemoteException {
mPlaybackState = MediaItemStatus.PLAYBACK_STATE_BUFFERING;
mUpnpService.getControlPoint().execute(new SetAVTransportURI(
getService(mCurrentRenderer, "AVTransport"),
uri, metadata) {
@ -264,6 +265,11 @@ public class RemotePlayService extends Service implements RegistryListener {
new Play(getService(mCurrentRenderer,
"AVTransport")) {
@Override
public void success(ActionInvocation invocation) {
mPlaybackState = MediaItemStatus.PLAYBACK_STATE_PLAYING;
}
@Override
public void failure(ActionInvocation invocation,
UpnpResponse operation, String defaultMessage) {