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
efb05494
authored
Aug 15, 2019
by
aquilescanta
Committed by
Toni
Aug 23, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove 2 deprecated SimpleExoPlayer constructors
PiperOrigin-RevId: 263552552
parent
e267550d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
72 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerFactory.java
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerFactory.java
View file @
efb05494
...
...
@@ -296,6 +296,7 @@ public final class ExoPlayerFactory {
drmSessionManager
,
bandwidthMeter
,
analyticsCollector
,
Clock
.
DEFAULT
,
looper
);
}
...
...
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
View file @
efb05494
...
...
@@ -330,78 +330,6 @@ public class SimpleExoPlayer extends BasePlayer
* @param trackSelector The {@link TrackSelector} that will be used by the instance.
* @param loadControl The {@link LoadControl} that will be used by the instance.
* @param bandwidthMeter The {@link BandwidthMeter} that will be used by the instance.
* @param drmSessionManager An optional {@link DrmSessionManager}. May be null if the instance
* will not be used for DRM protected playbacks.
* @param looper The {@link Looper} which must be used for all calls to the player and which is
* used to call listeners on.
* @deprecated Use {@link #SimpleExoPlayer(Context, RenderersFactory, TrackSelector, LoadControl,
* BandwidthMeter, AnalyticsCollector, Clock, Looper)} instead, and pass the {@link
* DrmSessionManager} to the {@link MediaSource} factories.
*/
@Deprecated
protected
SimpleExoPlayer
(
Context
context
,
RenderersFactory
renderersFactory
,
TrackSelector
trackSelector
,
LoadControl
loadControl
,
BandwidthMeter
bandwidthMeter
,
@Nullable
DrmSessionManager
<
FrameworkMediaCrypto
>
drmSessionManager
,
Looper
looper
)
{
this
(
context
,
renderersFactory
,
trackSelector
,
loadControl
,
drmSessionManager
,
bandwidthMeter
,
new
AnalyticsCollector
(
Clock
.
DEFAULT
),
looper
);
}
/**
* @param context A {@link Context}.
* @param renderersFactory A factory for creating {@link Renderer}s to be used by the instance.
* @param trackSelector The {@link TrackSelector} that will be used by the instance.
* @param loadControl The {@link LoadControl} that will be used by the instance.
* @param drmSessionManager An optional {@link DrmSessionManager}. May be null if the instance
* will not be used for DRM protected playbacks.
* @param bandwidthMeter The {@link BandwidthMeter} that will be used by the instance.
* @param analyticsCollector The {@link AnalyticsCollector} that will collect and forward all
* player events.
* @param looper The {@link Looper} which must be used for all calls to the player and which is
* used to call listeners on.
* @deprecated Use {@link #SimpleExoPlayer(Context, RenderersFactory, TrackSelector, LoadControl,
* BandwidthMeter, AnalyticsCollector, Clock, Looper)} instead, and pass the {@link
* DrmSessionManager} to the {@link MediaSource} factories.
*/
@Deprecated
protected
SimpleExoPlayer
(
Context
context
,
RenderersFactory
renderersFactory
,
TrackSelector
trackSelector
,
LoadControl
loadControl
,
@Nullable
DrmSessionManager
<
FrameworkMediaCrypto
>
drmSessionManager
,
BandwidthMeter
bandwidthMeter
,
AnalyticsCollector
analyticsCollector
,
Looper
looper
)
{
this
(
context
,
renderersFactory
,
trackSelector
,
loadControl
,
drmSessionManager
,
bandwidthMeter
,
analyticsCollector
,
Clock
.
DEFAULT
,
looper
);
}
/**
* @param context A {@link Context}.
* @param renderersFactory A factory for creating {@link Renderer}s to be used by the instance.
* @param trackSelector The {@link TrackSelector} that will be used by the instance.
* @param loadControl The {@link LoadControl} that will be used by the instance.
* @param bandwidthMeter The {@link BandwidthMeter} that will be used by the instance.
* @param analyticsCollector A factory for creating the {@link AnalyticsCollector} that will
* collect and forward all player events.
* @param clock The {@link Clock} that will be used by the instance. Should always be {@link
...
...
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