Forum Discussion
Play pause with Javascript
Hello,
Is there a pay using Javascript and
var player = GetPlayer()
method to then trigger play or pause of the Storyline player? After I define player, how could I then trigger play or pause? Note, I wish to use this method to trigger play/pause externally from the player not using triggers within the Storyline application where this is trivial to do.
Thanks for considering,
Jordan
- WaltHamiltonSuper Hero
What do you have in mind for initiating play/pause?
- JordanWeinst011Community Member
Hi,
I would like to attach the play/pause to one of the button elements on the
webpage I am embedding the program in to.Jordan
- WaltHamiltonSuper Hero
Am I reading this right? You want to have a webpage with SL embedded in it, playing like a video, with play and pause buttons on the webpage?
- JordanWeinst011Community Member
To be more specific, SL would load in a modal as an iframe. When closing
the iframe, the player keeps playing. I would like to trigger the pause on
the player when clicking the modal close button. This would be very simple
if play/pause was available in the API (which isn’t documented anywhere I
can find).