Forum Discussion
Storyline 360 Review Feature supports Javascript?
Well, it doesn't work in Review, but it does work in any browser, so I'm not thinking it's the Javascript. I'm using a slightly older version of Storyline 360 because there is an issue with JAWS, but it's not that old.
https://360.articulate.com/review/content/bb514dce-5b5c-48bb-91c4-f1793e6b8362/review
Hi Sharon, Javascript does work in Review. So that is not causing it for sure.
If you check your console when working in Review or the browser you will get messages of whats going wrong ( in the browser and in Review ). Messages in red are errors...so they shouldnot happen and thus something is wrong in the file. Either code not correct or finding something not properly.
In the image above you can see 2 messages that cause issues in the browser. Videoplayer::play() failed. Thats the default behaviour nowadays. The reason why Articulate introduced the big black play button. However the red error below is coming from 1 of the files in Articulate... and thus is not good. This is an error in Articulate code. It shouldnot give an error message, just because you want to play a video without interaction.
But as you can see in the black lines of text...
Storyline360 Default ProgramFiles generic_functions.js
vol: 0.5
Those are console.log("some message"); calls in Javascript. Javascript does work in Review and in the browser.
Nevertheless its a bug. When you do the same testrun in Review...there are a lot of more red error messages. Those should not be there. Up to Articulate to fix those. But those are not causing your Storyline not to work.
I added a console.log line into your code...
console.log("allAudios.length: "+allAudios.length);
because i suspect the file cannot find your audios. And indeed when running this in Chrome i get the amount of audios "2" but when running this in Review i get "0".
So somehow Review doesnot have access to your audios. It might be caused by the fact they are on layers... that im not sure of. But as your code cannot see the audios, well...it fails.
To show you audio and Javascript publishes well on Review... here is a sample of that...
https://360.articulate.com/review/content/98c4c2b9-ae4e-42fd-9bbd-855ece6f3f33/review
However the mass of red error messages related to fast.wistia and more i get too in projects... those are Articulate related and should be fixed by them.
- SharonGoza5 years agoCommunity Member
Thanks for debugging. I'm just going to deal with my scripts not working in Review since they work in browsers. Otherwise, I have to change a lot of pages and it's not worth it.