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
11ce80d0
authored
Apr 22, 2021
by
olly
Committed by
Andrew Lewis
Apr 23, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated ExoPlayerFactory
PiperOrigin-RevId: 369934240
parent
c01d26f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
75 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerFactory.java
RELEASENOTES.md
View file @
11ce80d0
...
@@ -75,8 +75,7 @@
...
@@ -75,8 +75,7 @@
*
Library restructuring:
*
Library restructuring:
*
`DebugTextViewHelper`
moved from
`ui`
package to
`util`
package.
*
`DebugTextViewHelper`
moved from
`ui`
package to
`util`
package.
*
Remove deprecated symbols:
*
Remove deprecated symbols:
*
Remove
`ExoPlayerFactory`
methods. Use
`SimpleExoPlayer.Builder`
*
Remove
`ExoPlayerFactory`
. Use
`SimpleExoPlayer.Builder`
instead.
instead.
*
Remove
`Player.DefaultEventListener`
. Use
`Player.EventListener`
*
Remove
`Player.DefaultEventListener`
. Use
`Player.EventListener`
instead.
instead.
*
Remove
`DownloadNotificationUtil`
. Use
`DownloadNotificationHelper`
*
Remove
`DownloadNotificationUtil`
. Use
`DownloadNotificationHelper`
...
@@ -86,15 +85,14 @@
...
@@ -86,15 +85,14 @@
*
Remove
`DefaultMediaSourceEventListener`
. Use
`MediaSourceEventListener`
*
Remove
`DefaultMediaSourceEventListener`
. Use
`MediaSourceEventListener`
instead.
instead.
*
Remove
`ExtractorMediaSource`
. Use
`ProgressiveMediaSource`
instead.
*
Remove
`ExtractorMediaSource`
. Use
`ProgressiveMediaSource`
instead.
*
Remove
*
Remove
`NotificationUtil.createNotificationChannel(Context, String, int,
`NotificationUtil.createNotificationChannel(Context, String, int, int)`
.
int)`
. Use
`createNotificationChannel(Context, String, int, int, int)`
Use
`createNotificationChannel(Context, String, int, int, int)`
instead.
instead.
*
Remove
`PlayerNotificationManager.NotificationListener`
*
Remove
`PlayerNotificationManager.NotificationListener`
`onNotificationStarted(int, Notification)`
and
`onNotificationStarted(int, Notification)`
and
`onNotificationCancelled(int)`
. Use
`onNotificationCancelled(int)`
. Use
`onNotificationPosted(int,
`onNotificationPosted(int, Notification, boolean)`
and
Notification, boolean)`
and
`onNotificationCancelled(int, boolean)`
`onNotificationCancelled(int, boolean)`
instead.
instead.
*
Remove
`PlayerNotificationManager.setNotificationListener`
. Use
*
Remove
`PlayerNotificationManager.setNotificationListener`
. Use
`PlayerNotificationManager.Builder.setNotificationListener`
instead.
`PlayerNotificationManager.Builder.setNotificationListener`
instead.
*
Remove
`DashManifest`
constructor. Use the remaining constructor with
*
Remove
`DashManifest`
constructor. Use the remaining constructor with
...
...
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerFactory.java
deleted
100644 → 0
View file @
c01d26f8
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
google
.
android
.
exoplayer2
;
import
android.content.Context
;
import
com.google.android.exoplayer2.analytics.AnalyticsCollector
;
import
com.google.android.exoplayer2.source.DefaultMediaSourceFactory
;
import
com.google.android.exoplayer2.trackselection.TrackSelector
;
import
com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
;
import
com.google.android.exoplayer2.util.Clock
;
import
com.google.android.exoplayer2.util.Util
;
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
@Deprecated
public
final
class
ExoPlayerFactory
{
private
ExoPlayerFactory
()
{}
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
static
SimpleExoPlayer
newSimpleInstance
(
Context
context
,
TrackSelector
trackSelector
)
{
return
newSimpleInstance
(
context
,
new
DefaultRenderersFactory
(
context
),
trackSelector
);
}
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
static
SimpleExoPlayer
newSimpleInstance
(
Context
context
,
RenderersFactory
renderersFactory
,
TrackSelector
trackSelector
)
{
return
newSimpleInstance
(
context
,
renderersFactory
,
trackSelector
,
new
DefaultLoadControl
());
}
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
static
SimpleExoPlayer
newSimpleInstance
(
Context
context
,
RenderersFactory
renderersFactory
,
TrackSelector
trackSelector
,
LoadControl
loadControl
)
{
return
new
SimpleExoPlayer
(
context
,
renderersFactory
,
trackSelector
,
new
DefaultMediaSourceFactory
(
context
),
loadControl
,
DefaultBandwidthMeter
.
getSingletonInstance
(
context
),
new
AnalyticsCollector
(
Clock
.
DEFAULT
),
/* useLazyPreparation= */
true
,
Clock
.
DEFAULT
,
Util
.
getCurrentOrMainLooper
());
}
}
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