We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cf404 commit a8af2c2Copy full SHA for a8af2c2
demo/main.js
@@ -1384,6 +1384,9 @@ shakaDemo.Main = class {
1384
ui.configure(uiConfig);
1385
}
1386
1387
+ const queueManager = this.player_.getQueueManager();
1388
+ await queueManager.removeAllItems();
1389
+
1390
if (asset.hasAds()) {
1391
// The player internally, if another stream is loaded, calls
1392
// adManager.onAssetUnload and this would prevent the initial preloading
@@ -1426,9 +1429,6 @@ shakaDemo.Main = class {
1426
1429
1427
1430
1428
1431
- const queueManager = this.player_.getQueueManager();
- await queueManager.removeAllItems();
-
1432
// Finally, the asset can be loaded.
1433
if (asset.preloadManager) {
1434
const preloadManager = asset.preloadManager;
0 commit comments