mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix section comments in CastPlayer
PiperOrigin-RevId: 273270892
This commit is contained in:
parent
a8adb97b5d
commit
29eebca5c5
1 changed files with 20 additions and 20 deletions
|
|
@ -771,8 +771,26 @@ public final class CastPlayer extends BasePlayer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class StatusListener implements RemoteMediaClient.Listener,
|
private void flushNotifications() {
|
||||||
SessionManagerListener<CastSession>, RemoteMediaClient.ProgressListener {
|
boolean recursiveNotification = !ongoingNotificationsTasks.isEmpty();
|
||||||
|
ongoingNotificationsTasks.addAll(notificationsBatch);
|
||||||
|
notificationsBatch.clear();
|
||||||
|
if (recursiveNotification) {
|
||||||
|
// This will be handled once the current notification task is finished.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
while (!ongoingNotificationsTasks.isEmpty()) {
|
||||||
|
ongoingNotificationsTasks.peekFirst().execute();
|
||||||
|
ongoingNotificationsTasks.removeFirst();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Internal classes.
|
||||||
|
|
||||||
|
private final class StatusListener
|
||||||
|
implements RemoteMediaClient.Listener,
|
||||||
|
SessionManagerListener<CastSession>,
|
||||||
|
RemoteMediaClient.ProgressListener {
|
||||||
|
|
||||||
// RemoteMediaClient.ProgressListener implementation.
|
// RemoteMediaClient.ProgressListener implementation.
|
||||||
|
|
||||||
|
|
@ -856,24 +874,6 @@ public final class CastPlayer extends BasePlayer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Internal methods.
|
|
||||||
|
|
||||||
private void flushNotifications() {
|
|
||||||
boolean recursiveNotification = !ongoingNotificationsTasks.isEmpty();
|
|
||||||
ongoingNotificationsTasks.addAll(notificationsBatch);
|
|
||||||
notificationsBatch.clear();
|
|
||||||
if (recursiveNotification) {
|
|
||||||
// This will be handled once the current notification task is finished.
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
while (!ongoingNotificationsTasks.isEmpty()) {
|
|
||||||
ongoingNotificationsTasks.peekFirst().execute();
|
|
||||||
ongoingNotificationsTasks.removeFirst();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Internal classes.
|
|
||||||
|
|
||||||
private final class SeekResultCallback implements ResultCallback<MediaChannelResult> {
|
private final class SeekResultCallback implements ResultCallback<MediaChannelResult> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue