Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
29eebca5
authored
Oct 07, 2019
by
aquilescanta
Committed by
Oliver Woodman
Oct 07, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix section comments in CastPlayer
PiperOrigin-RevId: 273270892
parent
a8adb97b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java
extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java
View file @
29eebca5
...
@@ -771,8 +771,26 @@ public final class CastPlayer extends BasePlayer {
...
@@ -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 {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment