Added some doc
This commit is contained in:
parent
769791af7a
commit
e5c00a7ef4
1 changed files with 6 additions and 0 deletions
|
@ -145,6 +145,12 @@ public class VideoDetailPlayerCrasher {
|
||||||
alertDialog.show();
|
alertDialog.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Note that this method does not crash the underlying exoplayer directly (it's not possible).
|
||||||
|
* It simply supplies a Exception to {@link Player#onPlayerError(ExoPlaybackException)}.
|
||||||
|
* @param player
|
||||||
|
* @param exception
|
||||||
|
*/
|
||||||
private void tryCrashPlayerWith(
|
private void tryCrashPlayerWith(
|
||||||
@NonNull final Player player,
|
@NonNull final Player player,
|
||||||
@NonNull final ExoPlaybackException exception
|
@NonNull final ExoPlaybackException exception
|
||||||
|
|
Loading…
Reference in a new issue