Web SDK
Firework provides programmatic access to certain features via its Web SDK available on `window._fwn`
Player
Attribute/Method
Description
Example:
// Seek to the beginning of a current video
document.querySelector("button.seek").onClick = function() {
window._fwn.player.currentTime = 0 // Seek to the beginning
}
// Programatically close the player
document.querySelector("button.close").addEventListener("click", function() {
window._fwn.player.close()
})Storyblock players
Example:
Last updated
Was this helpful?