Forum Discussion
SL360: Javascript GetPlayer() function is not defined
Where are you running the external script? Where are you trying to show the retrieved variable information? What exactly is the use case?
Player is an object within the Storyline published files and the Get and Set functions are associated with that object. I'm not sure you can call or trigger any of them from outside of the Storyline published environment but I'm not the JavaScript expert that others here are.
A work around might be to use JavaScript triggered by something inside of your Storyline project to retrieve your StoryLine variables send them to local storage and then, subsequently retrieve them from there.
In other words, instead of pulling values externally directly from Storyline, you push the values internally from Storyline to local and then pull the values externally from there.
Thanks for this. I updated the post and it's now more detailed.