Remove some spurious } from Player javadoc

Also use `@linkplain` in more places: If I was already touching a javadoc
block, I switched to `@linkplain` throughout the whole block.

PiperOrigin-RevId: 561320273
This commit is contained in:
ibaker 2023-08-30 06:13:02 -07:00 committed by Copybara-Service
parent 6a5d5aef92
commit b4ee896847

View File

@ -2617,15 +2617,15 @@ public interface Player {
* *
* <ul> * <ul>
* <li>If the timeline is empty or seeking is not possible, does nothing. * <li>If the timeline is empty or seeking is not possible, does nothing.
* <li>Otherwise, if the current {@link MediaItem} is {@link #isCurrentMediaItemLive()} live} * <li>Otherwise, if the current {@link MediaItem} is {@linkplain #isCurrentMediaItemLive()
* and {@link #isCurrentMediaItemSeekable() unseekable}, then: * live} and {@linkplain #isCurrentMediaItemSeekable() unseekable}, then:
* <ul> * <ul>
* <li>If {@link #hasPreviousMediaItem() a previous media item exists}, seeks to the * <li>If {@linkplain #hasPreviousMediaItem() a previous media item exists}, seeks to the
* default position of the previous media item. * default position of the previous media item.
* <li>Otherwise, does nothing. * <li>Otherwise, does nothing.
* </ul> * </ul>
* <li>Otherwise, if {@link #hasPreviousMediaItem() a previous media item exists} and the {@link * <li>Otherwise, if {@linkplain #hasPreviousMediaItem() a previous media item exists} and the
* #getCurrentPosition() current position} is less than {@link * {@linkplain #getCurrentPosition() current position} is less than {@link
* #getMaxSeekToPreviousPosition()}, seeks to the default position of the previous {@link * #getMaxSeekToPreviousPosition()}, seeks to the default position of the previous {@link
* MediaItem}. * MediaItem}.
* <li>Otherwise, seeks to 0 in the current {@link MediaItem}. * <li>Otherwise, seeks to 0 in the current {@link MediaItem}.
@ -2697,10 +2697,10 @@ public interface Player {
* *
* <ul> * <ul>
* <li>If the timeline is empty or seeking is not possible, does nothing. * <li>If the timeline is empty or seeking is not possible, does nothing.
* <li>Otherwise, if {@link #hasNextMediaItem() a next media item exists}, seeks to the default * <li>Otherwise, if {@linkplain #hasNextMediaItem() a next media item exists}, seeks to the
* position of the next {@link MediaItem}. * default position of the next {@link MediaItem}.
* <li>Otherwise, if the current {@link MediaItem} is {@link #isCurrentMediaItemLive() live} and * <li>Otherwise, if the current {@link MediaItem} is {@linkplain #isCurrentMediaItemLive()
* has not ended, seeks to the live edge of the current {@link MediaItem}. * live} and has not ended, seeks to the live edge of the current {@link MediaItem}.
* <li>Otherwise, does nothing. * <li>Otherwise, does nothing.
* </ul> * </ul>
* *
@ -3036,8 +3036,8 @@ public interface Player {
/** /**
* Returns the offset of the current playback position from the live edge in milliseconds, or * Returns the offset of the current playback position from the live edge in milliseconds, or
* {@link C#TIME_UNSET} if the current {@link MediaItem} {@link #isCurrentMediaItemLive()} isn't * {@link C#TIME_UNSET} if the current {@link MediaItem} {@linkplain #isCurrentMediaItemLive()
* live} or the offset is unknown. * isn't live} or the offset is unknown.
* *
* <p>The offset is calculated as {@code currentTime - playbackPosition}, so should usually be * <p>The offset is calculated as {@code currentTime - playbackPosition}, so should usually be
* positive. * positive.