Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1e776a86
authored
Nov 10, 2020
by
ibaker
Committed by
kim-vde
Nov 11, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix some typos
PiperOrigin-RevId: 341573964
parent
337c412d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadCursor.java
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadHelper.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.java
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsSampleStreamWrapper.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaSourceTest.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeDataSet.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeTimeline.java
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadCursor.java
View file @
1e776a86
...
...
@@ -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 posit
i
on -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().
*
...
...
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadHelper.java
View file @
1e776a86
...
...
@@ -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.
*/
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.java
View file @
1e776a86
...
...
@@ -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 neg
a
tive 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
=
...
...
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsSampleStreamWrapper.java
View file @
1e776a86
...
...
@@ -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
)
{
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaSourceTest.java
View file @
1e776a86
...
...
@@ -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
);
...
...
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeDataSet.java
View file @
1e776a86
...
...
@@ -213,7 +213,7 @@ public class FakeDataSet {
return
segments
;
}
/** Retuns whether unknown length is simulated */
/** Retu
r
ns whether unknown length is simulated */
public
boolean
isSimulatingUnknownLength
()
{
return
simulateUnknownLength
;
}
...
...
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeTimeline.java
View file @
1e776a86
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment