Play pause with Javascript

Dec 29, 2021

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

 

4 Replies
Jordan Weinstein

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).