The Omny Studio embeddable iframe player can be programmatically controlled on your own website using the player.js Javascript library. 

Player.js allows you to interface with the iframe using a set of standardized methods and events across a wide range of supported rich media players.

View demo code and example to see it working live

Read the player.js documentation to learn how to implement player.js on your website

The Omny Studio player emits the following events

  • play - when the player is played
  • pause - when the player is paused
  • ended - when the player has finished playing the clip
  • timeupdate - while the player is playing, updates the current time in seconds and the duration in seconds¬†

The Omny Studio player supports the following methods

  • play() - play the player
  • pause() - pause the player
  • getPaused() - returns if the player is paused
  • setCurrentTime() - seeks to the time in seconds
  • getCurrentTime() - returns the current position in seconds
  • getDuration() - returns the duration in seconds
  • mute() - mutes the player
  • unmute() - unmutes the player
  • getMuted() - returns if the player is muted
  • getVolume() - returns the player's volume in %
  • setVolume() - sets the player's volume in %
Did this answer your question?