mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove deprecated zero-arg DefaultTrackSelector
constructor
Use `DefaultTrackSelector(Context)` instead. #minor-release PiperOrigin-RevId: 533985937
This commit is contained in:
parent
5008417c8c
commit
2b409da881
@ -88,6 +88,8 @@
|
|||||||
`copyWithBitrate` and `copyWithVideoSize`, use `Format.buildUpon()` and
|
`copyWithBitrate` and `copyWithVideoSize`, use `Format.buildUpon()` and
|
||||||
setter methods instead.
|
setter methods instead.
|
||||||
* Remove deprecated `ExoPlayer.retry()`, use `prepare()` instead.
|
* Remove deprecated `ExoPlayer.retry()`, use `prepare()` instead.
|
||||||
|
* Remove deprecated zero-arg `DefaultTrackSelector` constructor, use
|
||||||
|
`DefaultTrackSelector(Context)` instead.
|
||||||
|
|
||||||
### 1.0.2 (2023-05-18)
|
### 1.0.2 (2023-05-18)
|
||||||
|
|
||||||
|
@ -2225,14 +2225,6 @@ public class DefaultTrackSelector extends MappingTrackSelector
|
|||||||
@GuardedBy("lock")
|
@GuardedBy("lock")
|
||||||
private AudioAttributes audioAttributes;
|
private AudioAttributes audioAttributes;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #DefaultTrackSelector(Context)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public DefaultTrackSelector() {
|
|
||||||
this(Parameters.DEFAULT_WITHOUT_CONTEXT, new AdaptiveTrackSelection.Factory());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param context Any {@link Context}.
|
* @param context Any {@link Context}.
|
||||||
*/
|
*/
|
||||||
@ -2260,6 +2252,8 @@ public class DefaultTrackSelector extends MappingTrackSelector
|
|||||||
* @deprecated Use {@link #DefaultTrackSelector(Context, TrackSelectionParameters,
|
* @deprecated Use {@link #DefaultTrackSelector(Context, TrackSelectionParameters,
|
||||||
* ExoTrackSelection.Factory)}
|
* ExoTrackSelection.Factory)}
|
||||||
*/
|
*/
|
||||||
|
// TODO: When this constructor is deleted, this.context can be made non-null and all
|
||||||
|
// null-conditional can be removed (including the warning logging when it's null).
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultTrackSelector(
|
public DefaultTrackSelector(
|
||||||
TrackSelectionParameters parameters, ExoTrackSelection.Factory trackSelectionFactory) {
|
TrackSelectionParameters parameters, ExoTrackSelection.Factory trackSelectionFactory) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user