From 4346b0fc9e4cd8365e228d348694bfcf6e05d64d Mon Sep 17 00:00:00 2001 From: Calvin Walton <calvin.walton@kepstin.ca> Date: Thu, 31 Jan 2019 17:47:48 -0500 Subject: [PATCH] Fix loading slide images in presentation format The initialization order change to support captions moved the acorn initialization to after some of the popcorn init had already run. We have to move that function to run after we create the acorn player so it references the correct #video element (since acorn replaces/ moves it during init) --- .../presentation/playback/presentation/2.0/playback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record-and-playback/presentation/playback/presentation/2.0/playback.js b/record-and-playback/presentation/playback/presentation/2.0/playback.js index 965f67872f..2c8af0108c 100755 --- a/record-and-playback/presentation/playback/presentation/2.0/playback.js +++ b/record-and-playback/presentation/playback/presentation/2.0/playback.js @@ -790,7 +790,6 @@ document.addEventListener('playback-ready', function(event) { logger.warn("==Unhandled playback-ready event", event.detail); } if (dataReady && mediaReady && contentReady) { - runPopcorn(); if (firstLoad) { // load up the acorn controls logger.info("==Loading acorn media player"); @@ -802,6 +801,7 @@ document.addEventListener('playback-ready', function(event) { swapVideoPresentation(); }); + runPopcorn(); initPopcorn(); } } -- GitLab