Web SDK
Firework provides programmatic access to certain features via its Web SDK available on `window._fwn`
Player
_fwn.player
Provides programmatic control to a "current" player. The "Current" player occupies either a fullscreen or minimized spot on a page. There can be only one "current" player at a time.
Note: Each Storyblock has its own player which will become the "current" player as soon as it's minimized or turned into a fullscreen one.
Attribute/Method | Description |
---|---|
| Will close the current player either by discarding it or moving back into context (storyblock |
| Will minimize current player into a floating mode. Turns PIP if applicable. |
| Turns the current player into fullscreen mode. |
| Will provide get/set access to the current time. |
Example:
Storyblock players
_fwn.players[name
]
Storyblock's player can be accessed by referencing the player from the list of all players using the widget's name. The interface to Storyblock's player is identical to the "current" player (see the table above).
Example:
Last updated