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
7d4a013c
authored
Apr 21, 2021
by
olly
Committed by
Oliver Woodman
Apr 21, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove more deprecated methods from ExoPlayerFactory
PiperOrigin-RevId: 369615413
parent
517e5909
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerFactory.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerFactory.java
View file @
7d4a013c
...
@@ -18,7 +18,6 @@ package com.google.android.exoplayer2;
...
@@ -18,7 +18,6 @@ package com.google.android.exoplayer2;
import
android.content.Context
;
import
android.content.Context
;
import
com.google.android.exoplayer2.analytics.AnalyticsCollector
;
import
com.google.android.exoplayer2.analytics.AnalyticsCollector
;
import
com.google.android.exoplayer2.source.DefaultMediaSourceFactory
;
import
com.google.android.exoplayer2.source.DefaultMediaSourceFactory
;
import
com.google.android.exoplayer2.trackselection.DefaultTrackSelector
;
import
com.google.android.exoplayer2.trackselection.TrackSelector
;
import
com.google.android.exoplayer2.trackselection.TrackSelector
;
import
com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
;
import
com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
;
import
com.google.android.exoplayer2.util.Clock
;
import
com.google.android.exoplayer2.util.Clock
;
...
@@ -33,13 +32,6 @@ public final class ExoPlayerFactory {
...
@@ -33,13 +32,6 @@ public final class ExoPlayerFactory {
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
@Deprecated
@Deprecated
@SuppressWarnings
(
"deprecation"
)
@SuppressWarnings
(
"deprecation"
)
public
static
SimpleExoPlayer
newSimpleInstance
(
Context
context
)
{
return
newSimpleInstance
(
context
,
new
DefaultTrackSelector
(
context
));
}
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
static
SimpleExoPlayer
newSimpleInstance
(
Context
context
,
TrackSelector
trackSelector
)
{
public
static
SimpleExoPlayer
newSimpleInstance
(
Context
context
,
TrackSelector
trackSelector
)
{
return
newSimpleInstance
(
context
,
new
DefaultRenderersFactory
(
context
),
trackSelector
);
return
newSimpleInstance
(
context
,
new
DefaultRenderersFactory
(
context
),
trackSelector
);
}
}
...
@@ -72,26 +64,4 @@ public final class ExoPlayerFactory {
...
@@ -72,26 +64,4 @@ public final class ExoPlayerFactory {
Clock
.
DEFAULT
,
Clock
.
DEFAULT
,
Util
.
getCurrentOrMainLooper
());
Util
.
getCurrentOrMainLooper
());
}
}
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
@Deprecated
public
static
ExoPlayer
newInstance
(
Context
context
,
Renderer
[]
renderers
,
TrackSelector
trackSelector
,
LoadControl
loadControl
)
{
return
new
ExoPlayerImpl
(
renderers
,
trackSelector
,
new
DefaultMediaSourceFactory
(
context
),
loadControl
,
DefaultBandwidthMeter
.
getSingletonInstance
(
context
),
/* analyticsCollector= */
null
,
/* useLazyPreparation= */
true
,
SeekParameters
.
DEFAULT
,
new
DefaultLivePlaybackSpeedControl
.
Builder
().
build
(),
ExoPlayer
.
DEFAULT_RELEASE_TIMEOUT_MS
,
/* pauseAtEndOfMediaItems= */
false
,
Clock
.
DEFAULT
,
Util
.
getCurrentOrMainLooper
(),
/* wrappingPlayer= */
null
,
/* additionalPermanentAvailableCommands= */
Player
.
Commands
.
EMPTY
);
}
}
}
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