Forum Discussion
Storyline 360 Javascript in 2021
So, you used to be able to get all kinds of useful values and execute various functions using the player object. You can find countless examples on this forum, even a spreadsheet with all the functions and values documented. None of these worked, so I found myself unminifying the slides.min.js file and trying to figure out what was going on.
It seems that all the player functions have recently been removed, apart from GetVar()
and SetVar()
so none of the clever solutions from a year or more ago will work.
I was trying to fiddle with the slides.min.js file, to expose more functions but that was a fools errand. All the player variables and functions are still available, just through an object: window.DS.
If you want to do more advanced javascript stuff, this is a good place to start. You can console.log(window.DS);
to see everything available.
I was trying to manually get and save the scene and slide number, as another user was doing, and then use that to add my own 'resume' functionality.
For my needs that ended up being unnecessary. I don't need to send them to the slide that they left on if I can literally grab all their interactions, the slides they have viewed etc, save that to a db, and then apply that the next time they visit the module:
var resumedata = window.DS.resumer.resumeData;
//Store this somewhere
window.DS.resumer.setResumeData(resumedata);
I haven't gone much further with it, but there is lots of potential there, for example this function:
window.DS.slideNumberManager.getPlayerVariables();
- CattySyjknCommunity Member
JavaScript remains the backbone of web development, and in 2021, Storyline 360 ​​harnesses its power to improve the educational experience. By the way, I accidentally came across the best service that offers a simple and convenient solution for converting files from PPTX to PDF - PDFFlex https://pdfflex.com/pptx-to-pdf. This service can be useful for those who want to easily convert PowerPoint presentations to PDF format, which provides broad compatibility and preserves the original formatting of the document.