# Overview

Covering general info about the `TOP` events.

## Types

`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.)

## Flow

The general event flow for playing content would go something like the following:

- `player`
- `content` (begin, setup, wait)
- `adRequest`
- `ads`
- `media`
- `content` (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:

- autoPlay scenarios
- ad scenarios
- media scenarios