Solved

play() failed because the user didn't interact with the document first.

Getting this on every page, how do fix this please?

Solution

Thanks for your replies, this issue has been there for many years, it happens when the first page is loaded and there's auto play audio on the page, subsequent pages with auto play audio do play OK.

The reason this happened on every page was my fault, I simply launched the index.html on my PC by double clicking it. When I do a preview after publishing and when launched from the server only the first page does not auto play. Which has a workaround.

Discussion (4)

Hello @pjackson2462. I am not familiar with this error message. Since you report that it is happening on every page, it is most likely that you have an object at the Project level that is causing this error. Look at the top of your Project Explorer for an action that is not working properly. It may be an "On-Page Show" action.

Sorry, it looks like you are using an older version of Lectora, version 17. Look in the "Title Explorer" on the left-hand pane. Title Explorer was renamed to Project Explorer in 2021.

Thanks for your replies, this issue has been there for many years, it happens when the first page is loaded and there's auto play audio on the page, subsequent pages with auto play audio do play OK.

The reason this happened on every page was my fault, I simply launched the index.html on my PC by double clicking it. When I do a preview after publishing and when launched from the server only the first page does not auto play. Which has a workaround.

Thanks for replying that you have addressed the issue. The version of software you are using is 8 years old. Auto-play of media is something that browsers do not want to allow, and the method by which they implement and try to block auto-play has changed many times over the years.


Yes, published courses will not run when launched from Windows Explorer. Most modern web applications, like a published course, require a web server or LMS environment.


Thanks for being a loyal Lectora customer!