Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome only: interactive book plays audio in next chapter #51

Open
blacksqr opened this issue Jan 13, 2021 · 0 comments
Open

Chrome only: interactive book plays audio in next chapter #51

blacksqr opened this issue Jan 13, 2021 · 0 comments

Comments

@blacksqr
Copy link

I'm using an interactive book widget in Moodle 3.9 to play sections of a SCORM course by using iframe embedders to embed each section in a chapter of the interactive book.

But ON CHROME ONLY, when I load the first chapter, the audio/video for the second chapter loads and starts playing simultaneously with the first, causing distracting audio overlap.

Same goes for when I get to the third chapter. Audio from the fourth chapter starts playing simultaneously. Etc.

I looked at the code for the interactive book widget, where in the file pagecontent.js there is a two-line method "preloadChapter" whose function is to "Preload current chapter and the next one" according to the comment.

I deleted the second line of the method, thinking that only the current chapter would then be preloaded. But to my surprise, deleting the line had no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant