Forum Discussion
JordanWeinst011
3 years agoCommunity Member
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?...
WaltHamilton
3 years agoSuper 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?
- JordanWeinst0113 years agoCommunity 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).