Forum Discussion

JordanWeinst011's avatar
JordanWeinst011
Community Member
3 years ago

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

 

    • JordanWeinst011's avatar
      JordanWeinst011
      Community 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

  • 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?

    • JordanWeinst011's avatar
      JordanWeinst011
      Community 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).