mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
fix: Allow use preferredText with external tracks (#10019)
This commit is contained in:
committed by
GitHub
parent
13d6efd55d
commit
3d11d75e10
@@ -224,11 +224,17 @@ shaka.queue.QueueManager = class extends shaka.util.FakeEventTarget {
|
||||
this.player_.configure(item.config);
|
||||
}
|
||||
|
||||
if (item.extraText?.length ||
|
||||
item.extraThumbnail?.length ||
|
||||
item.extraChapter?.length) {
|
||||
this.eventManager_.listenOnce(this.player_, 'streaming', async () => {
|
||||
await this.addExtraTracks_(item);
|
||||
});
|
||||
}
|
||||
|
||||
await this.player_.load(assetUriOrPreloader, item.startTime, item.mimeType);
|
||||
|
||||
this.preloadNext_ = null;
|
||||
|
||||
await this.addExtraTracks_(item);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user