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
9626e249
authored
May 05, 2021
by
olly
Committed by
bachinger
May 06, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove Format.create deprecated methods
PiperOrigin-RevId: 372088869
parent
4d4e2356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
111 deletions
RELEASENOTES.md
library/common/src/main/java/com/google/android/exoplayer2/Format.java
RELEASENOTES.md
View file @
9626e249
...
...
@@ -130,6 +130,7 @@
`setUseNavigationActionsInCompactView`
. Use
`setUseNextAction`
,
`setUsePreviousAction`
,
`setUseNextActionInCompactView`
and
`setUsePreviousActionInCompactView`
instead.
*
Remove
`Format.create`
methods. Use
`Format.Builder`
instead.
*
DRM:
*
Only dispatch DRM session acquire and release events once per period
when playing content that uses the same encryption keys for both audio &
...
...
library/common/src/main/java/com/google/android/exoplayer2/Format.java
View file @
9626e249
...
...
@@ -1036,117 +1036,6 @@ public final class Format implements Parcelable {
.
build
();
}
// Text.
/** @deprecated Use {@link Format.Builder}. */
@Deprecated
public
static
Format
createTextContainerFormat
(
@Nullable
String
id
,
@Nullable
String
label
,
@Nullable
String
containerMimeType
,
@Nullable
String
sampleMimeType
,
@Nullable
String
codecs
,
int
bitrate
,
@C
.
SelectionFlags
int
selectionFlags
,
@C
.
RoleFlags
int
roleFlags
,
@Nullable
String
language
)
{
return
new
Builder
()
.
setId
(
id
)
.
setLabel
(
label
)
.
setLanguage
(
language
)
.
setSelectionFlags
(
selectionFlags
)
.
setRoleFlags
(
roleFlags
)
.
setAverageBitrate
(
bitrate
)
.
setPeakBitrate
(
bitrate
)
.
setCodecs
(
codecs
)
.
setContainerMimeType
(
containerMimeType
)
.
setSampleMimeType
(
sampleMimeType
)
.
build
();
}
/** @deprecated Use {@link Format.Builder}. */
@Deprecated
public
static
Format
createTextContainerFormat
(
@Nullable
String
id
,
@Nullable
String
label
,
@Nullable
String
containerMimeType
,
@Nullable
String
sampleMimeType
,
@Nullable
String
codecs
,
int
bitrate
,
@C
.
SelectionFlags
int
selectionFlags
,
@C
.
RoleFlags
int
roleFlags
,
@Nullable
String
language
,
int
accessibilityChannel
)
{
return
new
Builder
()
.
setId
(
id
)
.
setLabel
(
label
)
.
setLanguage
(
language
)
.
setSelectionFlags
(
selectionFlags
)
.
setRoleFlags
(
roleFlags
)
.
setAverageBitrate
(
bitrate
)
.
setPeakBitrate
(
bitrate
)
.
setCodecs
(
codecs
)
.
setContainerMimeType
(
containerMimeType
)
.
setSampleMimeType
(
sampleMimeType
)
.
setAccessibilityChannel
(
accessibilityChannel
)
.
build
();
}
/** @deprecated Use {@link Format.Builder}. */
@Deprecated
public
static
Format
createTextSampleFormat
(
@Nullable
String
id
,
@Nullable
String
sampleMimeType
,
@C
.
SelectionFlags
int
selectionFlags
,
@Nullable
String
language
)
{
return
new
Builder
()
.
setId
(
id
)
.
setLanguage
(
language
)
.
setSelectionFlags
(
selectionFlags
)
.
setSampleMimeType
(
sampleMimeType
)
.
build
();
}
/** @deprecated Use {@link Format.Builder}. */
@Deprecated
public
static
Format
createTextSampleFormat
(
@Nullable
String
id
,
@Nullable
String
sampleMimeType
,
@C
.
SelectionFlags
int
selectionFlags
,
@Nullable
String
language
,
int
accessibilityChannel
,
long
subsampleOffsetUs
,
@Nullable
List
<
byte
[]>
initializationData
)
{
return
new
Builder
()
.
setId
(
id
)
.
setLanguage
(
language
)
.
setSelectionFlags
(
selectionFlags
)
.
setSampleMimeType
(
sampleMimeType
)
.
setInitializationData
(
initializationData
)
.
setSubsampleOffsetUs
(
subsampleOffsetUs
)
.
setAccessibilityChannel
(
accessibilityChannel
)
.
build
();
}
// Image.
/** @deprecated Use {@link Format.Builder}. */
@Deprecated
public
static
Format
createImageSampleFormat
(
@Nullable
String
id
,
@Nullable
String
sampleMimeType
,
@C
.
SelectionFlags
int
selectionFlags
,
@Nullable
List
<
byte
[]>
initializationData
,
@Nullable
String
language
)
{
return
new
Builder
()
.
setId
(
id
)
.
setLanguage
(
language
)
.
setSelectionFlags
(
selectionFlags
)
.
setSampleMimeType
(
sampleMimeType
)
.
setInitializationData
(
initializationData
)
.
build
();
}
// Generic.
/** @deprecated Use {@link Format.Builder}. */
...
...
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