mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Remove deprecated SingleSampleMediaSource.createMediaSource
#exofixit PiperOrigin-RevId: 395518824
This commit is contained in:
parent
ee8df7afcb
commit
0c969bb73d
2 changed files with 3 additions and 14 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue