mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove deprecated constructors in SegmentDownloader and its subclasses
PiperOrigin-RevId: 730828186
This commit is contained in:
parent
fe19d8c9be
commit
a016adc6b1
@ -58,6 +58,10 @@
|
||||
* Test Utilities:
|
||||
* Demo app:
|
||||
* Remove deprecated symbols:
|
||||
* Removed deprecated `SegmentDownloader` constructor
|
||||
`SegmentDownloader(MediaItem, Parser<M>, CacheDataSource.Factory,
|
||||
Executor)` and the corresponding constructors in its subclasses
|
||||
`DashDownloader`, `HlsDownloader` and `SsDownloader`.
|
||||
|
||||
## 1.6
|
||||
|
||||
|
@ -101,24 +101,6 @@ public abstract class SegmentDownloader<M extends FilterableManifest<M>> impleme
|
||||
|
||||
private volatile boolean isCanceled;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link SegmentDownloader#SegmentDownloader(MediaItem, Parser,
|
||||
* CacheDataSource.Factory, Executor, long)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public SegmentDownloader(
|
||||
MediaItem mediaItem,
|
||||
Parser<M> manifestParser,
|
||||
CacheDataSource.Factory cacheDataSourceFactory,
|
||||
Executor executor) {
|
||||
this(
|
||||
mediaItem,
|
||||
manifestParser,
|
||||
cacheDataSourceFactory,
|
||||
executor,
|
||||
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mediaItem The {@link MediaItem} to be downloaded.
|
||||
* @param manifestParser A parser for manifests belonging to the media to be downloaded.
|
||||
|
@ -109,24 +109,6 @@ public final class DashDownloader extends SegmentDownloader<DashManifest> {
|
||||
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link DashDownloader#DashDownloader(MediaItem, Parser,
|
||||
* CacheDataSource.Factory, Executor, long)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public DashDownloader(
|
||||
MediaItem mediaItem,
|
||||
Parser<DashManifest> manifestParser,
|
||||
CacheDataSource.Factory cacheDataSourceFactory,
|
||||
Executor executor) {
|
||||
this(
|
||||
mediaItem,
|
||||
manifestParser,
|
||||
cacheDataSourceFactory,
|
||||
executor,
|
||||
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*
|
||||
|
@ -97,24 +97,6 @@ public final class HlsDownloader extends SegmentDownloader<HlsPlaylist> {
|
||||
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link HlsDownloader#HlsDownloader(MediaItem, Parser, CacheDataSource.Factory,
|
||||
* Executor, long)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public HlsDownloader(
|
||||
MediaItem mediaItem,
|
||||
Parser<HlsPlaylist> manifestParser,
|
||||
CacheDataSource.Factory cacheDataSourceFactory,
|
||||
Executor executor) {
|
||||
this(
|
||||
mediaItem,
|
||||
manifestParser,
|
||||
cacheDataSourceFactory,
|
||||
executor,
|
||||
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*
|
||||
|
@ -97,24 +97,6 @@ public final class SsDownloader extends SegmentDownloader<SsManifest> {
|
||||
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link SsDownloader#SsDownloader(MediaItem, Parser, CacheDataSource.Factory,
|
||||
* Executor, long)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public SsDownloader(
|
||||
MediaItem mediaItem,
|
||||
Parser<SsManifest> manifestParser,
|
||||
CacheDataSource.Factory cacheDataSourceFactory,
|
||||
Executor executor) {
|
||||
this(
|
||||
mediaItem,
|
||||
manifestParser,
|
||||
cacheDataSourceFactory,
|
||||
executor,
|
||||
DEFAULT_MAX_MERGED_SEGMENT_START_TIME_DIFF_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user