account for when MediaStatus returned from RemoteMediaPlayer is null
This commit is contained in:
parent
f79369a9ad
commit
c915366c7b
|
@ -81,6 +81,11 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer {
|
|||
@Override
|
||||
public void onRemoteMediaPlayerStatusUpdated() {
|
||||
MediaStatus status = castMgr.getMediaStatus();
|
||||
if (status == null) {
|
||||
setBuffering(false);
|
||||
setPlayerStatus(PlayerStatus.INDETERMINATE, null);
|
||||
return;
|
||||
}
|
||||
Playable currentMedia = localVersion(status.getMediaInfo());
|
||||
long position = status.getStreamPosition();
|
||||
if (position > 0 && currentMedia.getPosition()==0) {
|
||||
|
|
Loading…
Reference in New Issue