-
We’re using FV Player with LearnDash to show Vimeo videos for courses.
I followed the guide here and the videos work, but course progression is not saved.
Upon page load, the LearnDash javascript code looks for a ‘video’ or ‘iframe’ tag within the video wrapper, and if found, sets various event listeners to keep track of progress. However, when using Vimeo, there is no video or iframe tag in the markup until after the play button is pressed.
On page load:
<div class="fp-player" ...> <img class="fp-splash" .../> <div class="fp-ui">...</div </div>
After pressing the play button, the splash image is removed, the video player is loaded, and it begins playing. However, the LearnDash javascript code has already been executed and the event listeners that record the video progress were not registered.
See line 549 of learndash_video_script.js in the LearnDash plugin.