Move documentation in common that linked to core classes

This will allow moving Player in common.

#player-to-common

PiperOrigin-RevId: 347797285
This commit is contained in:
krocard 2020-12-16 12:18:38 +00:00 committed by Christos Tsilopoulos
parent e791e3ce54
commit f11a9cdf71
2 changed files with 5 additions and 4 deletions

View File

@ -1431,7 +1431,9 @@ public interface Player {
/** /**
* Returns the track type that the renderer at a given index handles. * Returns the track type that the renderer at a given index handles.
* *
* @see Renderer#getTrackType() * <p>For example, a video renderer will return {@link C#TRACK_TYPE_VIDEO}, an audio renderer will
* return {@link C#TRACK_TYPE_AUDIO} and a text renderer will return {@link C#TRACK_TYPE_TEXT}.
*
* @param index The index of the renderer. * @param index The index of the renderer.
* @return One of the {@code TRACK_TYPE_*} constants defined in {@link C}. * @return One of the {@code TRACK_TYPE_*} constants defined in {@link C}.
*/ */

View File

@ -237,10 +237,9 @@ public interface Renderer extends PlayerMessage.Target {
String getName(); String getName();
/** /**
* Returns the track type that the renderer handles. For example, a video renderer will return * Returns the track type that the renderer handles.
* {@link C#TRACK_TYPE_VIDEO}, an audio renderer will return {@link C#TRACK_TYPE_AUDIO}, a text
* renderer will return {@link C#TRACK_TYPE_TEXT}, and so on.
* *
* @see Player#getRendererType(int)
* @return One of the {@code TRACK_TYPE_*} constants defined in {@link C}. * @return One of the {@code TRACK_TYPE_*} constants defined in {@link C}.
*/ */
int getTrackType(); int getTrackType();