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
1a95a354
authored
Aug 01, 2017
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Minor cleanup
parent
c01c8cd2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
14 deletions
library/core/src/androidTest/assets/ts/sample.ps.0.dump
library/core/src/androidTest/assets/ts/sample.ts.0.dump
library/core/src/main/java/com/google/android/exoplayer2/extractor/ts/H262Reader.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
library/core/src/androidTest/assets/ts/sample.ps.0.dump
View file @
1a95a354
...
...
@@ -69,7 +69,7 @@ track 224:
sample 0:
time = 40000
flags = 1
data = length 206
16, hash CA38A5B5
data = length 206
46, hash 576390B
sample 1:
time = 80000
flags = 0
...
...
library/core/src/androidTest/assets/ts/sample.ts.0.dump
View file @
1a95a354
...
...
@@ -28,9 +28,9 @@ track 256:
data = length 22, hash CE183139
sample count = 2
sample 0:
time =
33366
time =
0
flags = 1
data = length 20
669, hash 26DABA0F
data = length 20
711, hash 34341E8
sample 1:
time = 66733
flags = 0
...
...
library/core/src/main/java/com/google/android/exoplayer2/extractor/ts/H262Reader.java
View file @
1a95a354
...
...
@@ -137,9 +137,10 @@ public final class H262Reader implements ElementaryStreamReader {
}
}
if
(
hasOutputFormat
&&
(
startCodeValue
==
START_PICTURE
||
startCodeValue
==
START_SEQUENCE_HEADER
))
{
if
(
hasOutputFormat
&&
(
startCodeValue
==
START_PICTURE
||
startCodeValue
==
START_SEQUENCE_HEADER
))
{
int
bytesWrittenPastStartCode
=
limit
-
startCodeOffset
;
boolean
resetSample
=
(
samplePosition
==
C
.
POSITION_UNSET
)
;
boolean
resetSample
=
samplePosition
==
C
.
POSITION_UNSET
;
if
(
foundPicture
)
{
@C
.
BufferFlags
int
flags
=
isKeyframe
?
C
.
BUFFER_FLAG_KEY_FRAME
:
0
;
int
size
=
(
int
)
(
totalBytesWritten
-
samplePosition
)
-
bytesWrittenPastStartCode
;
...
...
@@ -147,7 +148,7 @@ public final class H262Reader implements ElementaryStreamReader {
isKeyframe
=
false
;
resetSample
=
true
;
}
foundPicture
=
(
startCodeValue
==
START_PICTURE
)
;
foundPicture
=
startCodeValue
==
START_PICTURE
;
if
(
resetSample
)
{
samplePosition
=
totalBytesWritten
-
bytesWrittenPastStartCode
;
sampleTimeUs
=
(
pesPtsUsAvailable
?
pesTimeUs
:
sampleTimeUs
+
frameDurationUs
);
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
View file @
1a95a354
...
...
@@ -126,7 +126,8 @@ import java.util.List;
* <li>Default: {@code R.id.exo_playback_control_view}</li>
* </ul>
* <li>All attributes that can be set on a {@link PlaybackControlView} can also be set on a
* SimpleExoPlayerView, and will be propagated to the inflated {@link PlaybackControlView}.
* SimpleExoPlayerView, and will be propagated to the inflated {@link PlaybackControlView}
* unless the layout is overridden to specify a custom {@code exo_controller} (see below).
* </li>
* </ul>
*
...
...
@@ -163,18 +164,17 @@ import java.util.List;
* </ul>
* </li>
* <li><b>{@code exo_controller_placeholder}</b> - A placeholder that's replaced with the inflated
* {@link PlaybackControlView}.
* {@link PlaybackControlView}.
Ignored if an {@code exo_controller} view exists.
* <ul>
* <li>Type: {@link View}</li>
* </ul>
* </li>
* <li><b>{@code exo_controller}</b> - An already inflated instance of
* {@link PlaybackControlView}. Allows you to use your own {@link PlaybackControlView} instead
* of default. Note: attrs such as rewind_increment will not be passed through to this
* instance and should be set at creation. {@code exo_controller_placeholder} will be ignored
* if this is set.
* <li><b>{@code exo_controller}</b> - An already inflated {@link PlaybackControlView}. Allows use
* of a custom extension of {@link PlaybackControlView}. Note that attributes such as
* {@code rewind_increment} will not be automatically propagated through to this instance. If
* a view exists with this id, any {@code exo_controller_placeholder} view will be ignored.
* <ul>
* <li>Type: {@link View}</li>
* <li>Type: {@link
PlaybackControl
View}</li>
* </ul>
* </li>
* <li><b>{@code exo_overlay}</b> - A {@link FrameLayout} positioned on top of the player which
...
...
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