The object returned by window.pnplayer() is your handle on the player. This page calls it player.
const player = window.pnplayer("pn-player", { sources: [/* ... */] });
Control methods
Commands you send before the player is ready are queued and run as soon as the first video can play, so you can call player.play() straight after creating the instance.
function
Start or resume playback
function
Pause playback
function
Jump to a position in the current video. time is in seconds.
function
Enter fullscreen. Viewers leave fullscreen with the player controls or the Escape key.
function
Switch to another entry from your sources array without reloading the player. Pass the source object itself, for example player.switchVideo(options.sources[1]). Fires playlistItem.
property
The underlying media player instance for advanced use. null until the ready event fires.
function
Remove all event listeners and unmount the player from the page
Events
Attach and remove listeners with player.on(event, callback) and player.off(event, callback). Pass the same function reference to off that you passed to on.
string
Show possible events
{}
The first video can play. player.current is available from this point.
{}
Playback started or resumed
{}
Playback paused
{ currentTime: number, duration: number }
Fired continuously during playback with the current position and total duration in seconds
{ position: number }
The viewer or your code finished seeking to a new position in seconds
{ state: { fullscreen: boolean } }
The player entered or left fullscreen
TextTrack | null
The selected caption track changed. The payload is the track now showing, with label, language, kind and src, or null when captions were turned off.
Source
A new video started. The payload is the matching entry from your sources array. Fires for the first video on load in playlist mode and whenever the video changes.
{ active: boolean }
A Chromecast session started (true) or ended (false)
{}
The viewer opened the AirPlay picker
function
Called with the event payload each time the event fires
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PN Player","colors":{"primary":"#2563EB","light":"#60A5FA","dark":"#1E40AF"},"logo":{"light":"https://mintcdn.com/pnplayer/DNjBL9ojZqOzYnP-/logo/logo.png?fit=max\u0026auto=format\u0026n=DNjBL9ojZqOzYnP-\u0026q=85\u0026s=3df5284e511168c657462c5b71d82f0c","dark":"https://mintcdn.com/pnplayer/DNjBL9ojZqOzYnP-/logo/logo.png?fit=max\u0026auto=format\u0026n=DNjBL9ojZqOzYnP-\u0026q=85\u0026s=3df5284e511168c657462c5b71d82f0c"},"favicon":"https://mintcdn.com/pnplayer/DNjBL9ojZqOzYnP-/logo/logo.png?fit=max\u0026auto=format\u0026n=DNjBL9ojZqOzYnP-\u0026q=85\u0026s=3df5284e511168c657462c5b71d82f0c","api":{"openapi":"api-reference/openapi.json"},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"mailto:hi@pnplayer.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.pnplayer.com"}},"footer":{"socials":{}},"icons":{"library":"tabler"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pnplayer","hasAudioNarration":false,"actualSubdomain":"pnplayer","customDomains":["docs.pnplayer.com"],"gitSource":{"type":"github","owner":"pnplayer-org","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6a99776c388ceda0012e0874","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"API reference","count":81},{"language":"default","tag":"Guides","count":24},{"language":"default","tag":"Videos","count":14},{"language":"default","tag":"Playlists","count":10},{"language":"default","tag":"Account","count":8},{"language":"default","tag":"Captions","count":7},{"language":"default","tag":"Features","count":7},{"language":"default","tag":"Analytics","count":6},{"language":"default","tag":"Feature requests","count":6},{"language":"default","tag":"Webhooks","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"player/events","slug":"/player/events","pageMetadata":{"title":"Controls and events","description":"Control the player from your own code and react to playback events.","icon":"broadcast","href":"/player/events"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Control the player from your own code and react to playback events.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/player/setup`,children:`Integration and setup`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The object returned by `,_jsx(_components.code,{children:`window.pnplayer()`}),` is your handle on the player. This page calls it `,_jsx(_components.code,{children:`player`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` player`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pnplayer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pn-player\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sources:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* ... */`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] });`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`control-methods`,children:`Control methods`}),`\n`,_jsxs(_components.p,{children:[`Commands you send before the player is ready are queued and run as soon as the first video can play, so you can call `,_jsx(_components.code,{children:`player.play()`}),` straight after creating the instance.`]}),`\n`,_jsx(ParamField,{path:`player.play()`,type:`function`,id:`param-player-play`,children:_jsx(_components.p,{children:`Start or resume playback`})}),`\n`,_jsx(ParamField,{path:`player.pause()`,type:`function`,id:`param-player-pause`,children:_jsx(_components.p,{children:`Pause playback`})}),`\n`,_jsx(ParamField,{path:`player.seek(time)`,type:`function`,id:`param-player-seek-time`,children:_jsxs(_components.p,{children:[`Jump to a position in the current video. `,_jsx(_components.code,{children:`time`}),` is in seconds.`]})}),`\n`,_jsx(ParamField,{path:`player.fullscreen()`,type:`function`,id:`param-player-fullscreen`,children:_jsx(_components.p,{children:`Enter fullscreen. Viewers leave fullscreen with the player controls or the Escape key.`})}),`\n`,_jsx(ParamField,{path:`player.switchVideo(source)`,type:`function`,id:`param-player-switch-video-source`,children:_jsxs(_components.p,{children:[`Switch to another entry from your `,_jsx(_components.code,{children:`sources`}),` array without reloading the player. Pass the source object itself, for example `,_jsx(_components.code,{children:`player.switchVideo(options.sources[1])`}),`. Fires `,_jsx(_components.code,{children:`playlistItem`}),`.`]})}),`\n`,_jsx(ParamField,{path:`player.current`,type:`property`,id:`param-player-current`,children:_jsxs(_components.p,{children:[`The underlying media player instance for advanced use. `,_jsx(_components.code,{children:`null`}),` until the `,_jsx(_components.code,{children:`ready`}),` event fires.`]})}),`\n`,_jsx(ParamField,{path:`player.destroy()`,type:`function`,id:`param-player-destroy`,children:_jsx(_components.p,{children:`Remove all event listeners and unmount the player from the page`})}),`\n`,_jsx(Heading,{level:`2`,id:`events`,children:`Events`}),`\n`,_jsxs(_components.p,{children:[`Attach and remove listeners with `,_jsx(_components.code,{children:`player.on(event, callback)`}),` and `,_jsx(_components.code,{children:`player.off(event, callback)`}),`. Pass the same function reference to `,_jsx(_components.code,{children:`off`}),` that you passed to `,_jsx(_components.code,{children:`on`}),`.`]}),`\n`,_jsx(ParamField,{path:`event`,type:`string`,id:`param-event`,children:_jsxs(Expandable,{title:`possible events`,children:[_jsx(ParamField,{path:`ready`,type:`{}`,id:`param-ready`,children:_jsxs(_components.p,{children:[`The first video can play. `,_jsx(_components.code,{children:`player.current`}),` is available from this point.`]})}),_jsx(ParamField,{path:`play`,type:`{}`,id:`param-play`,children:_jsx(_components.p,{children:`Playback started or resumed`})}),_jsx(ParamField,{path:`pause`,type:`{}`,id:`param-pause`,children:_jsx(_components.p,{children:`Playback paused`})}),_jsx(ParamField,{path:`time`,type:`{ currentTime: number, duration: number }`,id:`param-time`,children:_jsx(_components.p,{children:`Fired continuously during playback with the current position and total duration in seconds`})}),_jsx(ParamField,{path:`seekTo`,type:`{ position: number }`,id:`param-seek-to`,children:_jsx(_components.p,{children:`The viewer or your code finished seeking to a new position in seconds`})}),_jsx(ParamField,{path:`fullscreen`,type:`{ state: { fullscreen: boolean } }`,id:`param-fullscreen`,children:_jsx(_components.p,{children:`The player entered or left fullscreen`})}),_jsx(ParamField,{path:`captionsChanged`,type:`TextTrack | null`,id:`param-captions-changed`,children:_jsxs(_components.p,{children:[`The selected caption track changed. The payload is the track now showing, with `,_jsx(_components.code,{children:`label`}),`, `,_jsx(_components.code,{children:`language`}),`, `,_jsx(_components.code,{children:`kind`}),` and `,_jsx(_components.code,{children:`src`}),`, or `,_jsx(_components.code,{children:`null`}),` when captions were turned off.`]})}),_jsx(ParamField,{path:`playlistItem`,type:`Source`,id:`param-playlist-item`,children:_jsxs(_components.p,{children:[`A new video started. The payload is the matching entry from your `,_jsx(_components.code,{children:`sources`}),` array. Fires for the first video on load in `,_jsx(_components.code,{children:`playlist`}),` mode and whenever the video changes.`]})}),_jsx(ParamField,{path:`cast`,type:`{ active: boolean }`,id:`param-cast`,children:_jsxs(_components.p,{children:[`A Chromecast session started (`,_jsx(_components.code,{children:`true`}),`) or ended (`,_jsx(_components.code,{children:`false`}),`)`]})}),_jsx(ParamField,{path:`airplay`,type:`{}`,id:`param-airplay`,children:_jsx(_components.p,{children:`The viewer opened the AirPlay picker`})})]})}),`\n`,_jsx(ParamField,{path:`callback`,type:`function`,id:`param-callback`,children:_jsx(_components.p,{children:`Called with the event payload each time the event fires`})}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` player`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pnplayer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pn-player\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`player`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ready\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player is ready\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onTime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`currentTime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`duration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Math`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`floor`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currentTime`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`s of `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Math`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`floor`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`duration`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"s`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`player`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onTime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`player`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"playlistItem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`player`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"captionsChanged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`track`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`track`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `captions: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`track`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`label`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"captions off\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Later`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`player`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`off`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onTime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`player`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Controls and events","description":"Control the player from your own code and react to playback events.","icon":"broadcast","href":"/player/events"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Control methods","slug":"control-methods","depth":2,"children":[]},{"title":"Events","slug":"events","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pnplayer","siteName":"PN Player","title":"Controls and events - PN Player","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-03T13:30:38.350Z","originalFileLocation":"player/events.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Control the player from your own code and react to playback events.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PN Player\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Controls and events - PN Player\">\u003cmeta data-mint-head property=\"og:description\" content=\"Control the player from your own code and react to playback events.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PN Player\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pnplayer.com/player/events\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pnplayer.mintlify.site/_mintlify/api/og/v2?division=Player\u0026amp;title=Controls+and+events\u0026amp;description=Control+the+player+from+your+own+code+and+react+to+playback+events.\u0026amp;theme=97e3d6f98fbce031fffbe8ae\u0026amp;signature=ed2a351727aeb40a115f542c6cc1edd5a6ce7f73a467c9073a054a105fb59e1e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Controls and events - PN Player\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Control the player from your own code and react to playback events.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pnplayer.mintlify.site/_mintlify/api/og/v2?division=Player\u0026amp;title=Controls+and+events\u0026amp;description=Control+the+player+from+your+own+code+and+react+to+playback+events.\u0026amp;theme=97e3d6f98fbce031fffbe8ae\u0026amp;signature=ed2a351727aeb40a115f542c6cc1edd5a6ce7f73a467c9073a054a105fb59e1e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pnplayer/FSMz5KD1I8tnxE9p/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PN Player\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pnplayer.com/player/events\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/player/events.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pnplayer.com/#organization\",\"name\":\"PN Player\",\"url\":\"https://docs.pnplayer.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pnplayer/DNjBL9ojZqOzYnP-/logo/logo.png?fit=max\u0026auto=format\u0026n=DNjBL9ojZqOzYnP-\u0026q=85\u0026s=3df5284e511168c657462c5b71d82f0c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pnplayer.com#website\",\"name\":\"PN Player\",\"url\":\"https://docs.pnplayer.com\",\"publisher\":{\"@id\":\"https://docs.pnplayer.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pnplayer.com/player/events#webpage\",\"url\":\"https://docs.pnplayer.com/player/events\",\"name\":\"Controls and events\",\"description\":\"Control the player from your own code and react to playback events.\",\"dateModified\":\"2026-09-03T13:30:38.350Z\",\"isPartOf\":{\"@id\":\"https://docs.pnplayer.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pnplayer.com/player/events#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pnplayer.com/player/events#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Player\",\"item\":\"https://docs.pnplayer.com/player/setup\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Controls and events\",\"item\":\"https://docs.pnplayer.com/player/events\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pnplayer.com/player/events#article\",\"headline\":\"Controls and events\",\"name\":\"Controls and events\",\"description\":\"Control the player from your own code and react to playback events.\",\"url\":\"https://docs.pnplayer.com/player/events\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pnplayer.com/player/events#webpage\"},\"dateModified\":\"2026-09-03T13:30:38.350Z\",\"publisher\":{\"@id\":\"https://docs.pnplayer.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pnplayer.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PN Player\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PN Player\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/player/events.md","siteName":"PN Player","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"PN Player","href":""}]},{"group":"Features","pages":[{"title":"Video Management","icon":"https://api.iconify.design/solar/widget-2-linear.svg?color=%232563EB","href":"/features/video-management"},{"title":"Adaptive Streaming","icon":"https://api.iconify.design/solar/graph-up-linear.svg?color=%232563EB","href":"/features/streaming"},{"title":"Encoding \u0026 Transcoding","icon":"https://api.iconify.design/solar/soundwave-linear.svg?color=%232563EB","href":"/features/transcoding"},{"title":"Player","icon":"player-play","href":"/features/player"},{"title":"Analytics","icon":"https://api.iconify.design/solar/chart-2-linear.svg?color=%232563EB","href":"/features/analytics"},{"title":"Security","icon":"https://api.iconify.design/solar/shield-keyhole-linear.svg?color=%232563EB","href":"/features/security"},{"title":"AI Transcribe","icon":"https://api.iconify.design/solar/global-linear.svg?color=%232563EB","href":"/features/transcribe"}]},{"group":"Player","pages":[{"title":"Integration and setup","icon":"player-play","href":"/player/setup"},{"title":"Embed script","description":"Drop a video into any page with one script tag and no JavaScript of your own.","icon":"code","href":"/player/embed"},{"title":"Controls and events","icon":"broadcast","href":"/player/events"}]},{"group":"Guides","pages":[{"title":"Videos","description":"Learn how to upload, manage, caption, chapter, embed, and analyze your videos step by step from the dashboard.","icon":"https://api.iconify.design/solar/video-frame-2-linear.svg?color=%232563EB","href":"/dashboard/videos"},{"title":"Settings","icon":"https://api.iconify.design/solar/settings-minimalistic-linear.svg?color=%232563EB","href":"/dashboard/settings"},{"title":"Billing","icon":"https://api.iconify.design/solar/wallet-linear.svg?color=%232563EB","href":"/dashboard/billing"},{"title":"Teams","icon":"https://api.iconify.design/solar/users-group-rounded-linear.svg?color=%232563EB","href":"/dashboard/teams"},{"title":"Tags","icon":"https://api.iconify.design/solar/tag-price-linear.svg?color=%232563EB","href":"/dashboard/tags"}]},{"group":"Analytics","pages":[{"title":"Analytics","icon":"https://api.iconify.design/solar/graph-new-linear.svg?color=%232563EB","href":"/dashboard/analytics"},{"title":"Live Analytics","icon":"https://api.iconify.design/solar/graph-up-linear.svg?color=%232563EB","href":"/dashboard/live-analytics"},{"title":"User Analytics","icon":"https://api.iconify.design/solar/chart-square-linear.svg?color=%232563EB","href":"/dashboard/user-analytics"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Controls and events - PN Player","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}