Commit 1e776a86 by ibaker Committed by kim-vde

Fix some typos

PiperOrigin-RevId: 341573964
parent 337c412d
...@@ -28,7 +28,7 @@ public interface DownloadCursor extends Closeable { ...@@ -28,7 +28,7 @@ public interface DownloadCursor extends Closeable {
/** /**
* Returns the current position of the cursor in the download set. The value is zero-based. When * Returns the current position of the cursor in the download set. The value is zero-based. When
* the download set is first returned the cursor will be at positon -1, which is before the first * the download set is first returned the cursor will be at position -1, which is before the first
* download. After the last download is returned another call to next() will leave the cursor past * download. After the last download is returned another call to next() will leave the cursor past
* the last entry, at a position of count(). * the last entry, at a position of count().
* *
......
...@@ -341,7 +341,7 @@ public final class DownloadHelper { ...@@ -341,7 +341,7 @@ public final class DownloadHelper {
* streams. This argument is required for adaptive streams and ignored for progressive * streams. This argument is required for adaptive streams and ignored for progressive
* streams. * streams.
* @return A {@link DownloadHelper}. * @return A {@link DownloadHelper}.
* @throws IllegalStateException If the the corresponding module is missing for DASH, HLS or * @throws IllegalStateException If the corresponding module is missing for DASH, HLS or
* SmoothStreaming media items. * SmoothStreaming media items.
* @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams. * @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams.
*/ */
...@@ -370,7 +370,7 @@ public final class DownloadHelper { ...@@ -370,7 +370,7 @@ public final class DownloadHelper {
* streams. This argument is required for adaptive streams and ignored for progressive * streams. This argument is required for adaptive streams and ignored for progressive
* streams. * streams.
* @return A {@link DownloadHelper}. * @return A {@link DownloadHelper}.
* @throws IllegalStateException If the the corresponding module is missing for DASH, HLS or * @throws IllegalStateException If the corresponding module is missing for DASH, HLS or
* SmoothStreaming media items. * SmoothStreaming media items.
* @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams. * @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams.
*/ */
...@@ -401,7 +401,7 @@ public final class DownloadHelper { ...@@ -401,7 +401,7 @@ public final class DownloadHelper {
* @param drmSessionManager An optional {@link DrmSessionManager}. Used to help determine which * @param drmSessionManager An optional {@link DrmSessionManager}. Used to help determine which
* tracks can be selected. * tracks can be selected.
* @return A {@link DownloadHelper}. * @return A {@link DownloadHelper}.
* @throws IllegalStateException If the the corresponding module is missing for DASH, HLS or * @throws IllegalStateException If the corresponding module is missing for DASH, HLS or
* SmoothStreaming media items. * SmoothStreaming media items.
* @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams. * @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams.
*/ */
......
...@@ -1051,7 +1051,7 @@ public class FragmentedMp4Extractor implements Extractor { ...@@ -1051,7 +1051,7 @@ public class FragmentedMp4Extractor implements Extractor {
private static int checkNonNegative(int value) throws ParserException { private static int checkNonNegative(int value) throws ParserException {
if (value < 0) { if (value < 0) {
throw new ParserException("Unexpected negtive value: " + value); throw new ParserException("Unexpected negative value: " + value);
} }
return value; return value;
} }
...@@ -1659,7 +1659,7 @@ public class FragmentedMp4Extractor implements Extractor { ...@@ -1659,7 +1659,7 @@ public class FragmentedMp4Extractor implements Extractor {
: fragment.sampleSizeTable[currentSampleIndex]; : fragment.sampleSizeTable[currentSampleIndex];
} }
/** Returns the {@link C.BufferFlags} corresponding to the the current sample. */ /** Returns the {@link C.BufferFlags} corresponding to the current sample. */
@C.BufferFlags @C.BufferFlags
public int getCurrentSampleFlags() { public int getCurrentSampleFlags() {
int flags = int flags =
......
...@@ -974,7 +974,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; ...@@ -974,7 +974,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
* *
* @param id The ID of the track. * @param id The ID of the track.
* @param type The type of the track, must be one of {@link #MAPPABLE_TYPES}. * @param type The type of the track, must be one of {@link #MAPPABLE_TYPES}.
* @return The the mapped {@link TrackOutput}, or null if it's not been created yet. * @return The mapped {@link TrackOutput}, or null if it's not been created yet.
*/ */
@Nullable @Nullable
private TrackOutput getMappedTrackOutput(int id, int type) { private TrackOutput getMappedTrackOutput(int id, int type) {
......
...@@ -171,7 +171,7 @@ public class HlsMediaSourceTest { ...@@ -171,7 +171,7 @@ public class HlsMediaSourceTest {
+ "#EXTINF:4.00000,\n" + "#EXTINF:4.00000,\n"
+ "fileSequence3.ts\n" + "fileSequence3.ts\n"
+ "#EXT-X-SERVER-CONTROL:CAN-SKIP-UNTIL=24"; + "#EXT-X-SERVER-CONTROL:CAN-SKIP-UNTIL=24";
// The playlist finishes 1 second before the the current time, therefore there's a live edge // The playlist finishes 1 second before the current time, therefore there's a live edge
// offset of 1 second. // offset of 1 second.
SystemClock.setCurrentTimeMillis(Util.parseXsDateTime("2020-01-01T00:00:17.0+00:00")); SystemClock.setCurrentTimeMillis(Util.parseXsDateTime("2020-01-01T00:00:17.0+00:00"));
HlsMediaSource.Factory factory = createHlsMediaSourceFactory(playlistUri, playlist); HlsMediaSource.Factory factory = createHlsMediaSourceFactory(playlistUri, playlist);
...@@ -277,7 +277,7 @@ public class HlsMediaSourceTest { ...@@ -277,7 +277,7 @@ public class HlsMediaSourceTest {
+ "fileSequence0.ts\n" + "fileSequence0.ts\n"
+ "#EXT-X-PART-INF:PART-TARGET=0.5\n" + "#EXT-X-PART-INF:PART-TARGET=0.5\n"
+ "#EXT-X-SERVER-CONTROL:HOLD-BACK=12,PART-HOLD-BACK=3"; + "#EXT-X-SERVER-CONTROL:HOLD-BACK=12,PART-HOLD-BACK=3";
// The playlist finishes 1 second before the the current time. // The playlist finishes 1 second before the current time.
SystemClock.setCurrentTimeMillis(Util.parseXsDateTime("2020-01-01T00:00:05.0+00:00")); SystemClock.setCurrentTimeMillis(Util.parseXsDateTime("2020-01-01T00:00:05.0+00:00"));
HlsMediaSource.Factory factory = createHlsMediaSourceFactory(playlistUri, playlist); HlsMediaSource.Factory factory = createHlsMediaSourceFactory(playlistUri, playlist);
MediaItem mediaItem = MediaItem.fromUri(playlistUri); MediaItem mediaItem = MediaItem.fromUri(playlistUri);
......
...@@ -213,7 +213,7 @@ public class FakeDataSet { ...@@ -213,7 +213,7 @@ public class FakeDataSet {
return segments; return segments;
} }
/** Retuns whether unknown length is simulated */ /** Returns whether unknown length is simulated */
public boolean isSimulatingUnknownLength() { public boolean isSimulatingUnknownLength() {
return simulateUnknownLength; return simulateUnknownLength;
} }
......
...@@ -256,7 +256,7 @@ public final class FakeTimeline extends Timeline { ...@@ -256,7 +256,7 @@ public final class FakeTimeline extends Timeline {
adPlaybackState.withAdUri( adPlaybackState.withAdUri(
/* adGroupIndex= */ i, /* adGroupIndex= */ i,
/* adIndexInAdGroup= */ j, /* adIndexInAdGroup= */ j,
Uri.parse("https://ad/" + i + "/" + j)); Uri.parse("https://example.com/ad/" + i + "/" + j));
} }
adDurationsUs[i] = new long[adsPerAdGroup]; adDurationsUs[i] = new long[adsPerAdGroup];
Arrays.fill(adDurationsUs[i], AD_DURATION_US); Arrays.fill(adDurationsUs[i], AD_DURATION_US);
......
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