Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0c969bb7
authored
Sep 08, 2021
by
kimvde
Committed by
Oliver Woodman
Sep 09, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated SingleSampleMediaSource.createMediaSource
#exofixit PiperOrigin-RevId: 395518824
parent
ee8df7af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/source/SingleSampleMediaSource.java
RELEASENOTES.md
View file @
0c969bb7
...
@@ -69,6 +69,9 @@
...
@@ -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:
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/SingleSampleMediaSource.java
View file @
0c969bb7
...
@@ -128,20 +128,6 @@ public final class SingleSampleMediaSource extends BaseMediaSource {
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment