<pb-play>

The player is a custom element. The loader creates it from your snippet, copying each data- attribute across, and hands it your licence. Its attributes say what to play and as whom. How it behaves comes from the player’s configuration, never from an attribute.

What the loader puts on the page for the playlist snippet in the quickstart:

<pb-play key="YOUR_KEY" playlist="YOUR_PLAYLIST_ID"></pb-play>
key

The licence key, as /m/{key} reads it. Absent is legal and yields unlicensed mode (§5.5).

media

A playback object as JSON, the URL of one, or the URL of a media file (.m3u8, .mpd, .mp4, .webm), played as its only source (playback-object mediaFromUrl). Ignored when playlist is set.

player

The player document to configure from. Absent means DEFAULT_CONFIG.

playlist

The playlist to load, by id, from the property's public feed.

preview

Design tooling only. controls holds the control surface visible, idle holds it hidden, so a theme can be judged against controls that would otherwise fade. Never set on a customer page.

Attributes are read once, when the element is added to the page. To change what it plays afterwards, call load() — see the API.