Podcast Player API

The player supports the API of http://playerjs.io/, so you can use their open-source library to pick up the events from the player iframes. Currently, we support the following events and methods.

events: [
  'play',
  'pause',
  'ended',
  'error',
  'seeked',
  'timeupdate',
  'subscribeIntent',
  'shareIntent',
  'sendMetadata'
]

methods: [
  'play',
  'pause',
  'addEventListener',
  'removeEventListener',
  'getPaused',
  'getDuration',
  'setCurrentTime',
  'getCurrentTime'
]
	

You can find a minimal client Implementation under https://github.com/embedly/player.js/blob/master/SPEC.rst#client.

You must always wait till the ready events to fire before interacting with the player object.