mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove TODOs we're not going to do
1. customCacheKey for DASH/HLS/SS is now asserted against in DownloadRequest 2. Merging of event delivery in DownloadManager is very tricky to get right and probably not a good idea PiperOrigin-RevId: 244048392
This commit is contained in:
parent
289a8ffe4c
commit
0748566482
2 changed files with 0 additions and 3 deletions
|
|
@ -98,7 +98,6 @@ public class DefaultDownloaderFactory implements DownloaderFactory {
|
||||||
throw new IllegalStateException("Module missing for: " + request.type);
|
throw new IllegalStateException("Module missing for: " + request.type);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
// TODO: Support customCacheKey in DASH/HLS/SS, for completeness.
|
|
||||||
return constructor.newInstance(request.uri, request.streamKeys, downloaderConstructorHelper);
|
return constructor.newInstance(request.uri, request.streamKeys, downloaderConstructorHelper);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException("Failed to instantiate downloader for: " + request.type, e);
|
throw new RuntimeException("Failed to instantiate downloader for: " + request.type, e);
|
||||||
|
|
|
||||||
|
|
@ -485,8 +485,6 @@ public final class DownloadManager {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Merge these three events into a single MSG_STATE_CHANGE that can carry all updates. This
|
|
||||||
// allows updating idle at the same point as the downloads that can be queried changes.
|
|
||||||
private void onInitialized(List<Download> downloads) {
|
private void onInitialized(List<Download> downloads) {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
this.downloads.addAll(downloads);
|
this.downloads.addAll(downloads);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue