mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fixed issue in which DashChunkSource didn't make use of the most recent
manifest.
This commit is contained in:
parent
c3e0d34aa1
commit
42416b82db
1 changed files with 3 additions and 1 deletions
|
|
@ -302,12 +302,14 @@ public class DashChunkSource implements ChunkSource, Output {
|
||||||
@Override
|
@Override
|
||||||
public void enable(int track) {
|
public void enable(int track) {
|
||||||
enabledTrack = tracks.get(track);
|
enabledTrack = tracks.get(track);
|
||||||
processManifest(currentManifest);
|
|
||||||
if (enabledTrack.isAdaptive()) {
|
if (enabledTrack.isAdaptive()) {
|
||||||
adaptiveFormatEvaluator.enable();
|
adaptiveFormatEvaluator.enable();
|
||||||
}
|
}
|
||||||
if (manifestFetcher != null) {
|
if (manifestFetcher != null) {
|
||||||
manifestFetcher.enable();
|
manifestFetcher.enable();
|
||||||
|
processManifest(manifestFetcher.getManifest());
|
||||||
|
} else {
|
||||||
|
processManifest(currentManifest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue