Remove deprecated SingleSampleMediaSource.createMediaSource
#exofixit PiperOrigin-RevId: 395518824
This commit is contained in:
parent
ee8df7afcb
commit
0c969bb73d
@ -69,6 +69,9 @@
|
|||||||
`VideoListener`. Use `Player.addListener` and `Player.Listener` instead.
|
`VideoListener`. Use `Player.addListener` and `Player.Listener` instead.
|
||||||
* Remove `DefaultHttpDataSourceFactory`. Use
|
* Remove `DefaultHttpDataSourceFactory`. Use
|
||||||
`DefaultHttpDataSource.Factory` instead.
|
`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
|
* Remove `GvrAudioProcessor` and the GVR extension, which has been
|
||||||
deprecated since 2.11.0.
|
deprecated since 2.11.0.
|
||||||
* Cast extension:
|
* Cast extension:
|
||||||
|
@ -128,20 +128,6 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
|
|||||||
treatLoadErrorsAsEndOfStream,
|
treatLoadErrorsAsEndOfStream,
|
||||||
tag);
|
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;
|
private final DataSpec dataSpec;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user