Do not clear the timeline after the Cast receiver disconnects
The goal is to enable the app to fetch the timeline after a disconnection in order to prepare and resume local playback. PiperOrigin-RevId: 671022044
This commit is contained in:
parent
87bd9ba585
commit
a00c446529
@ -42,6 +42,8 @@
|
||||
* MIDI extension:
|
||||
* Leanback extension:
|
||||
* Cast Extension:
|
||||
* Stop clearning the timeline after the CastSession disconnects, which
|
||||
enables the sender app to resume playback locally after a disconnection.
|
||||
* Test Utilities:
|
||||
* Demo app:
|
||||
* Remove deprecated symbols:
|
||||
|
@ -1283,11 +1283,8 @@ public final class CastPlayer extends BasePlayer {
|
||||
remoteMediaClient.registerCallback(statusListener);
|
||||
remoteMediaClient.addProgressListener(statusListener, PROGRESS_REPORT_PERIOD_MS);
|
||||
updateInternalStateAndNotifyIfChanged();
|
||||
} else {
|
||||
updateTimelineAndNotifyIfChanged();
|
||||
if (sessionAvailabilityListener != null) {
|
||||
sessionAvailabilityListener.onCastSessionUnavailable();
|
||||
}
|
||||
} else if (sessionAvailabilityListener != null) {
|
||||
sessionAvailabilityListener.onCastSessionUnavailable();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user