Player Store
Player Dispatches
podlovePlayer(selector, config).then(function (store) {
store.dispatch({
type: TYPE,
payload: PAYLOAD
})
});
Every player interaction can be triggered via the redux store. Accessing the players store enables the full control of the player while running. You can find a complete list of available types in the types definition.
Player Subscriptions
podlovePlayer(selector, config).then(function (store) {
store.subscribe(() => {
const { lastAction } = store.getState()
// Do something with the last action
console.log({ type: lastAction.type, payload: lastAction.payload })
})
});
Every player interaction is reflected in the redux store. You can subscribe to every player event by attatching to the latest action.
You can find a complete list of available types in the types definition.