mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Show ad markers after the window duration
Issue: #6552 PiperOrigin-RevId: 287964221
This commit is contained in:
parent
826083db92
commit
b5fa338367
2 changed files with 4 additions and 1 deletions
|
|
@ -37,6 +37,9 @@
|
||||||
* Support "twos" codec (big endian PCM) in MP4
|
* Support "twos" codec (big endian PCM) in MP4
|
||||||
([#5789](https://github.com/google/ExoPlayer/issues/5789)).
|
([#5789](https://github.com/google/ExoPlayer/issues/5789)).
|
||||||
* WAV: Support IMA ADPCM encoded data.
|
* WAV: Support IMA ADPCM encoded data.
|
||||||
|
* Show ad group markers in `DefaultTimeBar` even if they are after the end of
|
||||||
|
the current window
|
||||||
|
([#6552](https://github.com/google/ExoPlayer/issues/6552)).
|
||||||
|
|
||||||
### 2.11.1 (2019-12-20) ###
|
### 2.11.1 (2019-12-20) ###
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -943,7 +943,7 @@ public class PlayerControlView extends FrameLayout {
|
||||||
adGroupTimeInPeriodUs = period.durationUs;
|
adGroupTimeInPeriodUs = period.durationUs;
|
||||||
}
|
}
|
||||||
long adGroupTimeInWindowUs = adGroupTimeInPeriodUs + period.getPositionInWindowUs();
|
long adGroupTimeInWindowUs = adGroupTimeInPeriodUs + period.getPositionInWindowUs();
|
||||||
if (adGroupTimeInWindowUs >= 0 && adGroupTimeInWindowUs <= window.durationUs) {
|
if (adGroupTimeInWindowUs >= 0) {
|
||||||
if (adGroupCount == adGroupTimesMs.length) {
|
if (adGroupCount == adGroupTimesMs.length) {
|
||||||
int newLength = adGroupTimesMs.length == 0 ? 1 : adGroupTimesMs.length * 2;
|
int newLength = adGroupTimesMs.length == 0 ? 1 : adGroupTimesMs.length * 2;
|
||||||
adGroupTimesMs = Arrays.copyOf(adGroupTimesMs, newLength);
|
adGroupTimesMs = Arrays.copyOf(adGroupTimesMs, newLength);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue