thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 61 forks source link

mediaLesson, interactiveVideo: syncpoints do not alwasy work with more than one mediaLesson or intrecativeVideo #1226

Closed torinfo closed 1 year ago

torinfo commented 1 year ago

It depends even on the order of the pages in the LO.

Suppose that you have a mediaLesson, mediaLesson, nav, mediaLesson

The syncpoints of the 3rd mediaLesson do not work anymore. This has to do with the way the popcorn library and specifically the plugins are loaded. A mediaLesson does not reload the popcorn library if there is already a mediaLesson in the LO. However, the nav page loads popcorn, and specificaaly with a different set of plugins. The 3rd mediaLesson does not reload the needed plugins and fails.

torinfo commented 1 year ago

Probably the best fix is to always load popcorn with all plugins instead of trying to do it on the fly. For now the mediaLesson and interactiveVideo page just reload popcorn and the plugins