Player API

Boomstream Player triggers events that you can catch on the page using Javascript. Player triggers the following events:

  • Play - When Player starts playing a video.
  • Pause - When user pauses a video.
  • Stop - When Player finishes playing a video.
  • Time - Periodical event which sends current video position.


You should add next Javascript code to the page where Boomstream Player is located:

window.addEventListener('message', receiveMessage, false);
function receiveMessage(event) {
  if (event.origin !== "") {
  // Your code here

Event data will be located in the event object in the data field.

Possible field properties:

  • method - Event name (play, pause, stop, time).
  • code - Video code.
  • time - Current video position (only for time event).