<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-objectmediaFromUrl). Ignored whenplaylistis 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.
controlsholds the control surface visible,idleholds 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.