Audio hidden from DOM.
Jun 16, 2021
By
Snorre Rubin
I have an issue that I am hoping someone has an insight to.
I have a course where there are som audio involved. I need to be able to access said audio throught some javascript triggers.
When I export for web and run it locally, it works fine, through the code var audio = document.getElementsByTagName('audio')[0];
But when I upload it to an ftp-server, an run it online, the audio is hidden from the DOM-structure. I searched the DOM structure in the Chrome console, and couldn't find it either.
Any ideas?
5 Replies
Which authoring tool are you using? How is the audio being added initially?
I am using Storyline 360. The problem shows up whether I uses "Audio from file..." or "Text-to-speech". And weirdly enough only shows up when uploaded, not when run locally.
Below are two screenshots, both of the same module.
First is run from a server, second locally.
When you say "server", are you referring to the 360 review site or 360 lms? Or, is this a corporate or personal server?
The problem persists on both personal server and on 360 review. Haven't testet it yet in our own LMS, but I would guess that it would also be the case there.
Just checked. It is also the case on our LMS.