mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Don't forget isSeekable in ExtractorMediaSource.
We currently forget whether a source is seekable at re-preparation. This was implemented intentionally this way under the assumption that we really can't seek until we have loaded the seek map again. However, seek operations are only allowed after a media period is prepared. So there is no harm in remembering whether a source is seekable. This problem currently prevents reusing ClippingMediaSources with ExtractorMediaSource and a non-zero start clip position. Issue: #5351 PiperOrigin-RevId: 229169441
This commit is contained in:
parent
f44fc542bb
commit
86637facdd
2 changed files with 4 additions and 1 deletions
|
|
@ -41,6 +41,9 @@
|
||||||
* Add `Handler` parameter to `ConcatenatingMediaSource` methods which take a
|
* Add `Handler` parameter to `ConcatenatingMediaSource` methods which take a
|
||||||
callback `Runnable`.
|
callback `Runnable`.
|
||||||
* Remove `player` and `isTopLevelSource` parameters from `MediaSource.prepare`.
|
* Remove `player` and `isTopLevelSource` parameters from `MediaSource.prepare`.
|
||||||
|
* Fix issue with reusing a `ClippingMediaSource` with an inner
|
||||||
|
`ExtractorMediaSource` and a non-zero start position
|
||||||
|
([#5351](https://github.com/google/ExoPlayer/issues/5351)).
|
||||||
|
|
||||||
### 2.9.3 ###
|
### 2.9.3 ###
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,7 @@ public final class ExtractorMediaSource extends BaseMediaSource
|
||||||
@Override
|
@Override
|
||||||
public void prepareSourceInternal(@Nullable TransferListener mediaTransferListener) {
|
public void prepareSourceInternal(@Nullable TransferListener mediaTransferListener) {
|
||||||
transferListener = mediaTransferListener;
|
transferListener = mediaTransferListener;
|
||||||
notifySourceInfoRefreshed(timelineDurationUs, /* isSeekable= */ false);
|
notifySourceInfoRefreshed(timelineDurationUs, timelineIsSeekable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue