Fixed tracks being skipped.
This commit is contained in:
parent
8d48f73e07
commit
b98df87408
1 changed files with 7 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue