Remove deprecated SingleSampleMediaSource.createMediaSource

#exofixit

PiperOrigin-RevId: 395518824
This commit is contained in:
kimvde 2021-09-08 19:25:01 +01:00 committed by Oliver Woodman
parent ee8df7afcb
commit 0c969bb73d
2 changed files with 3 additions and 14 deletions

View File

@ -69,6 +69,9 @@
`VideoListener`. Use `Player.addListener` and `Player.Listener` instead.
* Remove `DefaultHttpDataSourceFactory`. Use
`DefaultHttpDataSource.Factory` instead.
* Remove `SingleSampleMediaSource.createMediaSource(Uri, Format, long)`.
Use `SingleSampleMediaSource.createMediaSource(MediaItem.Subtitle,
long)` instead.
* Remove `GvrAudioProcessor` and the GVR extension, which has been
deprecated since 2.11.0.
* Cast extension:

View File

@ -128,20 +128,6 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
treatLoadErrorsAsEndOfStream,
tag);
}
/** @deprecated Use {@link #createMediaSource(MediaItem.Subtitle, long)} instead. */
@Deprecated
public SingleSampleMediaSource createMediaSource(Uri uri, Format format, long durationUs) {
return new SingleSampleMediaSource(
format.id == null ? trackId : format.id,
new MediaItem.Subtitle(
uri, checkNotNull(format.sampleMimeType), format.language, format.selectionFlags),
dataSourceFactory,
durationUs,
loadErrorHandlingPolicy,
treatLoadErrorsAsEndOfStream,
tag);
}
}
private final DataSpec dataSpec;