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
a433163b
authored
Apr 29, 2022
by
ibaker
Committed by
Ian Baker
May 09, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Prefix @ContentType values with CONTENT_
PiperOrigin-RevId: 445356625
parent
07d08ba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
8 deletions
library/common/src/main/java/com/google/android/exoplayer2/C.java
library/common/src/main/java/com/google/android/exoplayer2/C.java
View file @
a433163b
...
@@ -728,26 +728,59 @@ public final class C {
...
@@ -728,26 +728,59 @@ public final class C {
public
static
final
String
LANGUAGE_UNDETERMINED
=
"und"
;
public
static
final
String
LANGUAGE_UNDETERMINED
=
"und"
;
/**
/**
* Represents a streaming or other media type. One of {@link #TYPE_DASH}, {@link #TYPE_SS}, {@link
* Represents a streaming or other media type. One of:
* #TYPE_HLS}, {@link #TYPE_RTSP} or {@link #TYPE_OTHER}.
*
* <ul>
* <li>{@link #CONTENT_TYPE_DASH}
* <li>{@link #CONTENT_TYPE_SS}
* <li>{@link #CONTENT_TYPE_HLS}
* <li>{@link #CONTENT_TYPE_RTSP}
* <li>{@link #CONTENT_TYPE_OTHER}
* </ul>
*/
*/
// @Target list includes both 'default' targets and TYPE_USE, to ensure backwards compatibility
// @Target list includes both 'default' targets and TYPE_USE, to ensure backwards compatibility
// with Kotlin usages from before TYPE_USE was added.
// with Kotlin usages from before TYPE_USE was added.
@Documented
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@Retention
(
RetentionPolicy
.
SOURCE
)
@Target
({
FIELD
,
METHOD
,
PARAMETER
,
LOCAL_VARIABLE
,
TYPE_USE
})
@Target
({
FIELD
,
METHOD
,
PARAMETER
,
LOCAL_VARIABLE
,
TYPE_USE
})
@IntDef
({
TYPE_DASH
,
TYPE_SS
,
TYPE_HLS
,
TYPE_RTSP
,
TYPE_OTHER
})
@IntDef
({
CONTENT_TYPE_DASH
,
CONTENT_TYPE_SS
,
CONTENT_TYPE_HLS
,
CONTENT_TYPE_RTSP
,
CONTENT_TYPE_OTHER
})
public
@interface
ContentType
{}
public
@interface
ContentType
{}
/** Value representing a DASH manifest. */
/** Value representing a DASH manifest. */
public
static
final
int
TYPE_DASH
=
0
;
public
static
final
int
CONTENT_TYPE_DASH
=
0
;
/**
* @deprecated Use {@link #CONTENT_TYPE_DASH} instead.
*/
@Deprecated
public
static
final
int
TYPE_DASH
=
CONTENT_TYPE_DASH
;
/** Value representing a Smooth Streaming manifest. */
/** Value representing a Smooth Streaming manifest. */
public
static
final
int
TYPE_SS
=
1
;
public
static
final
int
CONTENT_TYPE_SS
=
1
;
/**
* @deprecated Use {@link #CONTENT_TYPE_SS} instead.
*/
@Deprecated
public
static
final
int
TYPE_SS
=
CONTENT_TYPE_SS
;
/** Value representing an HLS manifest. */
/** Value representing an HLS manifest. */
public
static
final
int
TYPE_HLS
=
2
;
public
static
final
int
CONTENT_TYPE_HLS
=
2
;
/**
* @deprecated Use {@link #CONTENT_TYPE_HLS} instead.
*/
@Deprecated
public
static
final
int
TYPE_HLS
=
CONTENT_TYPE_HLS
;
/** Value representing an RTSP stream. */
/** Value representing an RTSP stream. */
public
static
final
int
TYPE_RTSP
=
3
;
public
static
final
int
CONTENT_TYPE_RTSP
=
3
;
/**
* @deprecated Use {@link #CONTENT_TYPE_RTSP} instead.
*/
@Deprecated
public
static
final
int
TYPE_RTSP
=
CONTENT_TYPE_RTSP
;
/** Value representing files other than DASH, HLS or Smooth Streaming manifests, or RTSP URIs. */
/** Value representing files other than DASH, HLS or Smooth Streaming manifests, or RTSP URIs. */
public
static
final
int
TYPE_OTHER
=
4
;
public
static
final
int
CONTENT_TYPE_OTHER
=
4
;
/**
* @deprecated Use {@link #CONTENT_TYPE_OTHER} instead.
*/
@Deprecated
public
static
final
int
TYPE_OTHER
=
CONTENT_TYPE_OTHER
;
/** A return value for methods where the end of an input was encountered. */
/** A return value for methods where the end of an input was encountered. */
public
static
final
int
RESULT_END_OF_INPUT
=
-
1
;
public
static
final
int
RESULT_END_OF_INPUT
=
-
1
;
...
...
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