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
e0bab55f
authored
Feb 07, 2022
by
olly
Committed by
Ian Baker
Feb 08, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add missing calls to AnalyticsCollector
PiperOrigin-RevId: 426892085
parent
9c8c0a59
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
libraries/exoplayer/src/main/java/androidx/media3/exoplayer/ExoPlayerImpl.java
libraries/exoplayer/src/main/java/androidx/media3/exoplayer/ExoPlayerImpl.java
View file @
e0bab55f
...
@@ -2786,6 +2786,7 @@ import java.util.concurrent.TimeoutException;
...
@@ -2786,6 +2786,7 @@ import java.util.concurrent.TimeoutException;
@Override
@Override
public
void
onCues
(
List
<
Cue
>
cues
)
{
public
void
onCues
(
List
<
Cue
>
cues
)
{
currentCues
=
cues
;
currentCues
=
cues
;
analyticsCollector
.
onCues
(
cues
);
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
for
(
Listener
listeners
:
listenerArraySet
)
{
for
(
Listener
listeners
:
listenerArraySet
)
{
listeners
.
onCues
(
cues
);
listeners
.
onCues
(
cues
);
...
@@ -2894,6 +2895,7 @@ import java.util.concurrent.TimeoutException;
...
@@ -2894,6 +2895,7 @@ import java.util.concurrent.TimeoutException;
DeviceInfo
deviceInfo
=
createDeviceInfo
(
streamVolumeManager
);
DeviceInfo
deviceInfo
=
createDeviceInfo
(
streamVolumeManager
);
if
(!
deviceInfo
.
equals
(
ExoPlayerImpl
.
this
.
deviceInfo
))
{
if
(!
deviceInfo
.
equals
(
ExoPlayerImpl
.
this
.
deviceInfo
))
{
ExoPlayerImpl
.
this
.
deviceInfo
=
deviceInfo
;
ExoPlayerImpl
.
this
.
deviceInfo
=
deviceInfo
;
analyticsCollector
.
onDeviceInfoChanged
(
deviceInfo
);
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
for
(
Listener
listener
:
listenerArraySet
)
{
for
(
Listener
listener
:
listenerArraySet
)
{
listener
.
onDeviceInfoChanged
(
deviceInfo
);
listener
.
onDeviceInfoChanged
(
deviceInfo
);
...
@@ -2903,6 +2905,7 @@ import java.util.concurrent.TimeoutException;
...
@@ -2903,6 +2905,7 @@ import java.util.concurrent.TimeoutException;
@Override
@Override
public
void
onStreamVolumeChanged
(
int
streamVolume
,
boolean
streamMuted
)
{
public
void
onStreamVolumeChanged
(
int
streamVolume
,
boolean
streamMuted
)
{
analyticsCollector
.
onDeviceVolumeChanged
(
streamVolume
,
streamMuted
);
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
for
(
Listener
listener
:
listenerArraySet
)
{
for
(
Listener
listener
:
listenerArraySet
)
{
listener
.
onDeviceVolumeChanged
(
streamVolume
,
streamMuted
);
listener
.
onDeviceVolumeChanged
(
streamVolume
,
streamMuted
);
...
...
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