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
2c33afa7
authored
Feb 07, 2022
by
ibaker
Committed by
Ian Baker
Feb 21, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated ProgressiveMediaSource.Factory setters
#minor-release PiperOrigin-RevId: 426909957
parent
b6d2e4cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
34 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/source/ProgressiveMediaSource.java
RELEASENOTES.md
View file @
2c33afa7
...
@@ -164,6 +164,13 @@
...
@@ -164,6 +164,13 @@
*
Remove
`ActionFile`
and
`ActionFileUpgradeUtil`
. Use ExoPlayer 2.16.1 or
*
Remove
`ActionFile`
and
`ActionFileUpgradeUtil`
. Use ExoPlayer 2.16.1 or
before to use
`ActionFileUpgradeUtil`
to merge legacy action files into
before to use
`ActionFileUpgradeUtil`
to merge legacy action files into
`DefaultDownloadIndex`
.
`DefaultDownloadIndex`
.
*
Remove
`ProgressiveMediaSource#setExtractorsFactory`
. Use
`ProgressiveMediaSource.Factory(DataSource.Factory, ExtractorsFactory)`
constructor instead.
*
Remove
`ProgressiveMediaSource.Factory#setTag`
and, and
`ProgressiveMediaSource.Factory#setCustomCacheKey`
. Use
`MediaItem.Builder#setTag`
and
`MediaItem.Builder#setCustomCacheKey`
instead.
*
Change the following
`IntDefs`
to
`@Target(TYPE_USE)`
only. This may break
*
Change the following
`IntDefs`
to
`@Target(TYPE_USE)`
only. This may break
the compilation of usages in Kotlin, which can be fixed by moving the
the compilation of usages in Kotlin, which can be fixed by moving the
annotation to annotate the type (
`Int`
).
annotation to annotate the type (
`Int`
).
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/ProgressiveMediaSource.java
View file @
2c33afa7
...
@@ -125,40 +125,6 @@ public final class ProgressiveMediaSource extends BaseMediaSource
...
@@ -125,40 +125,6 @@ public final class ProgressiveMediaSource extends BaseMediaSource
}
}
/**
/**
* @deprecated Pass the {@link ExtractorsFactory} via {@link #Factory(DataSource.Factory,
* ExtractorsFactory)}. This is necessary so that proguard can treat the default extractors
* factory as unused.
*/
@Deprecated
public
Factory
setExtractorsFactory
(
@Nullable
ExtractorsFactory
extractorsFactory
)
{
this
.
progressiveMediaExtractorFactory
=
playerId
->
new
BundledExtractorsAdapter
(
extractorsFactory
!=
null
?
extractorsFactory
:
new
DefaultExtractorsFactory
());
return
this
;
}
/**
* @deprecated Use {@link MediaItem.Builder#setCustomCacheKey(String)} and {@link
* #createMediaSource(MediaItem)} instead.
*/
@Deprecated
public
Factory
setCustomCacheKey
(
@Nullable
String
customCacheKey
)
{
this
.
customCacheKey
=
customCacheKey
;
return
this
;
}
/**
* @deprecated Use {@link MediaItem.Builder#setTag(Object)} and {@link
* #createMediaSource(MediaItem)} instead.
*/
@Deprecated
public
Factory
setTag
(
@Nullable
Object
tag
)
{
this
.
tag
=
tag
;
return
this
;
}
/**
* Sets the {@link LoadErrorHandlingPolicy}. The default value is created by calling {@link
* Sets the {@link LoadErrorHandlingPolicy}. The default value is created by calling {@link
* DefaultLoadErrorHandlingPolicy#DefaultLoadErrorHandlingPolicy()}.
* DefaultLoadErrorHandlingPolicy#DefaultLoadErrorHandlingPolicy()}.
*
*
...
...
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