mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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,
|
allocator,
|
||||||
preloadLooper);
|
preloadLooper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PreloadMediaSource createMediaSource(MediaSource mediaSource) {
|
||||||
|
return new PreloadMediaSource(
|
||||||
|
mediaSource,
|
||||||
|
preloadControl,
|
||||||
|
trackSelector,
|
||||||
|
bandwidthMeter,
|
||||||
|
rendererCapabilities,
|
||||||
|
allocator,
|
||||||
|
preloadLooper);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String TAG = "PreloadMediaSource";
|
private static final String TAG = "PreloadMediaSource";
|
||||||
|
|
@ -377,7 +388,7 @@ public final class PreloadMediaSource extends WrappingMediaSource {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isUsedByPlayer() {
|
/* package */ boolean isUsedByPlayer() {
|
||||||
return prepareSourceCalled();
|
return prepareSourceCalled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue