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
624bb6b8
authored
Jun 06, 2019
by
olly
Committed by
Oliver Woodman
Jun 06, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Attach timestamp to ExoPlaybackException
PiperOrigin-RevId: 251748542
parent
cfa837df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java
View file @
624bb6b8
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
;
package
com
.
google
.
android
.
exoplayer2
;
import
android.os.SystemClock
;
import
androidx.annotation.IntDef
;
import
androidx.annotation.IntDef
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.source.MediaSource
;
import
com.google.android.exoplayer2.source.MediaSource
;
...
@@ -73,6 +74,9 @@ public final class ExoPlaybackException extends Exception {
...
@@ -73,6 +74,9 @@ public final class ExoPlaybackException extends Exception {
*/
*/
public
final
int
rendererIndex
;
public
final
int
rendererIndex
;
/** The value of {@link SystemClock#elapsedRealtime()} when this exception was created. */
public
final
long
timestampMs
;
@Nullable
private
final
Throwable
cause
;
@Nullable
private
final
Throwable
cause
;
/**
/**
...
@@ -131,6 +135,7 @@ public final class ExoPlaybackException extends Exception {
...
@@ -131,6 +135,7 @@ public final class ExoPlaybackException extends Exception {
this
.
type
=
type
;
this
.
type
=
type
;
this
.
cause
=
cause
;
this
.
cause
=
cause
;
this
.
rendererIndex
=
rendererIndex
;
this
.
rendererIndex
=
rendererIndex
;
timestampMs
=
SystemClock
.
elapsedRealtime
();
}
}
private
ExoPlaybackException
(
@Type
int
type
,
String
message
)
{
private
ExoPlaybackException
(
@Type
int
type
,
String
message
)
{
...
@@ -138,6 +143,7 @@ public final class ExoPlaybackException extends Exception {
...
@@ -138,6 +143,7 @@ public final class ExoPlaybackException extends Exception {
this
.
type
=
type
;
this
.
type
=
type
;
rendererIndex
=
C
.
INDEX_UNSET
;
rendererIndex
=
C
.
INDEX_UNSET
;
cause
=
null
;
cause
=
null
;
timestampMs
=
SystemClock
.
elapsedRealtime
();
}
}
/**
/**
...
...
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