mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Internal change
PiperOrigin-RevId: 600784733
(cherry picked from commit 0c0b19e26e)
This commit is contained in:
parent
8e97895e9f
commit
3a222473e9
1 changed files with 12 additions and 1 deletions
|
|
@ -170,6 +170,17 @@ public final class PreloadMediaSource extends WrappingMediaSource {
|
|||
allocator,
|
||||
preloadLooper);
|
||||
}
|
||||
|
||||
public PreloadMediaSource createMediaSource(MediaSource mediaSource) {
|
||||
return new PreloadMediaSource(
|
||||
mediaSource,
|
||||
preloadControl,
|
||||
trackSelector,
|
||||
bandwidthMeter,
|
||||
rendererCapabilities,
|
||||
allocator,
|
||||
preloadLooper);
|
||||
}
|
||||
}
|
||||
|
||||
private static final String TAG = "PreloadMediaSource";
|
||||
|
|
@ -377,7 +388,7 @@ public final class PreloadMediaSource extends WrappingMediaSource {
|
|||
}
|
||||
}
|
||||
|
||||
private boolean isUsedByPlayer() {
|
||||
/* package */ boolean isUsedByPlayer() {
|
||||
return prepareSourceCalled();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue