Covering general info about the TOP events.
TOP dispatches several different types of events:
| Type | Description |
|---|---|
player |
Player lifecycle |
content |
Playing content (ads and media) |
adRequest |
Requesting ads |
ad |
Playing ads |
media |
Playing media |
captions |
Closed Captioning |
cue |
Cues triggered from the stream |
timelineMarker |
Segmented content |
view |
Player view state (attached, fullscreen, etc.) |
The general event flow for playing content would go something like the following:
playercontent (begin, setup, wait)adRequestadsmediacontent (interrupt, error, or complete)TODO: more detailed overview of the flow of events
TODO: Show event flows for specific scenarios, maybe also link to example page which logs out the events so it's easy to see: