Commit 1ef63263 by aquilescanta Committed by Oliver Woodman

Move documentation about the fields to the fields' javadocs

Also avoid mentioning that those fields cannot be null, since they are primitives.

PiperOrigin-RevId: 380169988
parent 043c2e7e
...@@ -25,8 +25,6 @@ import com.google.common.collect.ImmutableList; ...@@ -25,8 +25,6 @@ import com.google.common.collect.ImmutableList;
/** /**
* Represents an RTSP track's timing info, included as {@link RtspHeaders#RTP_INFO} in an RTSP PLAY * Represents an RTSP track's timing info, included as {@link RtspHeaders#RTP_INFO} in an RTSP PLAY
* response (RFC2326 Section 12.33). * response (RFC2326 Section 12.33).
*
* <p>The fields {@link #rtpTimestamp} and {@link #sequenceNumber} will not both be {@code null}.
*/ */
/* package */ final class RtspTrackTiming { /* package */ final class RtspTrackTiming {
...@@ -98,9 +96,17 @@ import com.google.common.collect.ImmutableList; ...@@ -98,9 +96,17 @@ import com.google.common.collect.ImmutableList;
return listBuilder.build(); return listBuilder.build();
} }
/** The timestamp of the next RTP packet, {@link C#TIME_UNSET} if not present. */ /**
* The timestamp of the next RTP packet, {@link C#TIME_UNSET} if not present.
*
* <p>Cannot be {@link C#TIME_UNSET} if {@link #sequenceNumber} is {@link C#INDEX_UNSET}.
*/
public final long rtpTimestamp; public final long rtpTimestamp;
/** The sequence number of the next RTP packet, {@link C#INDEX_UNSET} if not present. */ /**
* The sequence number of the next RTP packet, {@link C#INDEX_UNSET} if not present.
*
* <p>Cannot be {@link C#INDEX_UNSET} if {@link #rtpTimestamp} is {@link C#TIME_UNSET}.
*/
public final int sequenceNumber; public final int sequenceNumber;
/** The {@link Uri} that identifies a matching {@link RtspMediaTrack}. */ /** The {@link Uri} that identifies a matching {@link RtspMediaTrack}. */
public final Uri uri; public final Uri uri;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment