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 {
/**
* 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
* the last entry, at a position of count().
*
......
......@@ -341,7 +341,7 @@ public final class DownloadHelper {
* streams. This argument is required for adaptive streams and ignored for progressive
* streams.
* @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.
* @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams.
*/
......@@ -370,7 +370,7 @@ public final class DownloadHelper {
* streams. This argument is required for adaptive streams and ignored for progressive
* streams.
* @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.
* @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams.
*/
......@@ -401,7 +401,7 @@ public final class DownloadHelper {
* @param drmSessionManager An optional {@link DrmSessionManager}. Used to help determine which
* tracks can be selected.
* @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.
* @throws IllegalArgumentException If the {@code dataSourceFactory} is null for adaptive streams.
*/
......
......@@ -1051,7 +1051,7 @@ public class FragmentedMp4Extractor implements Extractor {
private static int checkNonNegative(int value) throws ParserException {
if (value < 0) {
throw new ParserException("Unexpected negtive value: " + value);
throw new ParserException("Unexpected negative value: " + value);
}
return value;
}
......@@ -1659,7 +1659,7 @@ public class FragmentedMp4Extractor implements Extractor {
: 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
public int getCurrentSampleFlags() {
int flags =
......
......@@ -974,7 +974,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
*
* @param id The ID of the track.
* @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
private TrackOutput getMappedTrackOutput(int id, int type) {
......
......@@ -171,7 +171,7 @@ public class HlsMediaSourceTest {
+ "#EXTINF:4.00000,\n"
+ "fileSequence3.ts\n"
+ "#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.
SystemClock.setCurrentTimeMillis(Util.parseXsDateTime("2020-01-01T00:00:17.0+00:00"));
HlsMediaSource.Factory factory = createHlsMediaSourceFactory(playlistUri, playlist);
......@@ -277,7 +277,7 @@ public class HlsMediaSourceTest {
+ "fileSequence0.ts\n"
+ "#EXT-X-PART-INF:PART-TARGET=0.5\n"
+ "#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"));
HlsMediaSource.Factory factory = createHlsMediaSourceFactory(playlistUri, playlist);
MediaItem mediaItem = MediaItem.fromUri(playlistUri);
......
......@@ -213,7 +213,7 @@ public class FakeDataSet {
return segments;
}
/** Retuns whether unknown length is simulated */
/** Returns whether unknown length is simulated */
public boolean isSimulatingUnknownLength() {
return simulateUnknownLength;
}
......
......@@ -256,7 +256,7 @@ public final class FakeTimeline extends Timeline {
adPlaybackState.withAdUri(
/* adGroupIndex= */ i,
/* adIndexInAdGroup= */ j,
Uri.parse("https://ad/" + i + "/" + j));
Uri.parse("https://example.com/ad/" + i + "/" + j));
}
adDurationsUs[i] = new long[adsPerAdGroup];
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