The useBroadcastContext hook lets you build custom components which interact directly with the Broadcast state store.
The useStore hook is from
zustand,
and inherits all of the documentation for Zustand stores.
Features
Flexible interaction with the broadcast state store
Based on Zustand’s useStore hooks
Anatomy
Import the components and piece the parts together.
import * as Broadcast from "@livepeer/react/broadcast";import { useBroadcastContext, useStore } from "@livepeer/react/broadcast";export default () => ( <Broadcast.Root> {/** The `useBroadcastContext` hook can be used in any component, as long as it's inside the Broadcast.Root React Context provider */} <CustomComponent /> </Broadcast.Root>);function CustomComponent({ style, __scopeBroadcast,}: Broadcast.BroadcastScopedProps<{}>) { const context = useBroadcastContext("CustomComponent", __scopeBroadcast); // use selectors with the Zustand store, to make sure your component doesn't render // on every store state change const { status } = useStore(context.store, ({ status }) => ({ status, })); return status;}
State
The useBroadcastContext hook returns a Zustand store, which contains the
BroadcastState.
aria
The ARIA text for the controls given the current state.
Indicates whether the broadcast’s audio track is turned on.
enabled
Specifies whether the broadcast is currently active or in “preview” mode.
hydrated
Reflects whether the broadcast store is hydrated, indicating if initial data has
been loaded into the state.
mediaDevices
A list of the current media devices (based on
MediaDeviceInfo),
which changes based on permissions or when a user starts sharing their display.
type MediaDeviceInfoExtended = Omit<MediaDeviceInfo, "label" | "toJSON"> & { /** * This is a convenience field added to MediaDeviceInfo to help easily add a device picker. * * For security reasons, the label field will blank unless an active media stream exists * or the user has granted persistent permission for media device access. The set of device labels * could otherwise be used as part of a fingerprinting mechanism to identify a user. * * When the label field is not blank, these are the same value. Otherwise, the value is a friendly default. */ friendlyName: string; /** * For security reasons, the label field is blank unless an active media stream exists * or the user has granted persistent permission for media device access. The set of device labels * could otherwise be used as part of a fingerprinting mechanism to identify a user. * * We override it here to be null when it is blank, for easier developer usage. */ label: string | null;};mediaDevices: MediaDeviceInfoExtended[] | null;
mediaStream
The MediaStream
for the current broadcast, containing the audio and video tracks.
mediaStream: MediaStream | null;
mounted
Whether the broadcast component is currently mounted in the DOM.
peerConnection
The
RTCPeerConnection
object for the broadcast, managing the connection between the local and remote
peers.
peerConnection: RTCPeerConnection | null;
status
The current status of the broadcast, which can be “live”, “pending”, or “idle”.
status: "live" | "pending" | "idle";
ingestUrl
The WHIP ingest URL used for the broadcast.
ingestUrl: string | null;
video
Indicates if the broadcast’s video track is turned on.
mediaDeviceIds
The IDs of the currently selected media devices.
mediaDeviceIds: MediaDeviceIds;
__initialProps
The initial properties passed into the broadcast component. This is an internal
object used by Broadcast.
__initialProps: InitialBroadcastProps;
__device
Information about the broadcast device’s capabilities and support. This is an
internal object used by Broadcast, but can be used for detecting device
capabilities.
type BroadcastDeviceInformation = { version: string; /** If the environment supports mediaDevices */ isMediaDevicesSupported: boolean; /** If the environment supports RTCPeerConnection */ isRTCPeerConnectionSupported: boolean; /** If the environment supports sharing display media */ isDisplayMediaSupported: boolean;};__device: BroadcastDeviceInformation;
__controls
The current state of broadcast controls. This is an internal object used by
Broadcast.
__controls: BroadcastControlsState;
__controlsFunctions
An object containing functions to manipulate the broadcast’s state, such as
toggling audio/video, updating the media stream, and setting the peer
connection.
These functions are internal - please refer to the UI Kit source code before
interacting with these functions.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Livepeer Docs","colors":{"primary":"#3CB540","light":"#2b9a66","dark":"#3CB540"},"logo":{"light":"https://mintcdn.com/na-36-fix-simplify-ubuntu-deps/tdgVQ14Wt8cgTvJN/snippets/assets/logos/light.svg?fit=max\u0026auto=format\u0026n=tdgVQ14Wt8cgTvJN\u0026q=85\u0026s=0d906cdf330039e031b052442e85a2da","dark":"https://mintcdn.com/na-36-fix-simplify-ubuntu-deps/tdgVQ14Wt8cgTvJN/snippets/assets/logos/dark.svg?fit=max\u0026auto=format\u0026n=tdgVQ14Wt8cgTvJN\u0026q=85\u0026s=92bdf3bd6b00b01c25499d14ff93ec2b"},"favicon":"/snippets/assets/logos/favicon/favicon.png","api":{"openapi":"api/openapi.yaml","mdx":{"server":"https://livepeer.studio/api"}},"appearance":{"default":"dark"},"navbar":{"links":[{"icon":"x-twitter","href":"https://twitter.com/Livepeer","label":""},{"icon":"github","href":"https://github.com/livepeer","label":""},{"icon":"discord","href":"https://discord.gg/livepeer","label":""}]},"footer":{"socials":{"website":"https://forum.livepeer.org","github":"https://github.com/livepeer","twitter":"https://twitter.com/livepeer","discord":"https://discord.gg/livepeer","linkedin":"https://www.linkedin.com/company/livepeer"}},"search":{"prompt":"Need help? Ask our AI"},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"dark-plus"}}},"integrations":{"ga4":{"measurementId":"G-P1Z15F6NX4"}},"errors":{"404":{"redirect":false,"title":"Ruh oh. This page doesn't exist.","description":"\u003cFrame>\u003cimg src=\"https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExN2FteDJ4bno5MHU5Y3QxdGx3eWR2emdhejRhc2c1Y2d3ejY5ajlxMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/Ju7l5y9osyymQ/giphy.gif\" alt=\"Rick Roll\" />\u003c/Frame>\u003cbr/>\u003cbr/>Sorry About That."}},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"na-36-fix-simplify-ubuntu-deps","hasAudioNarration":false,"actualSubdomain":"na-36-fix-simplify-ubuntu-deps","customDomains":[],"gitSource":{"type":"github","owner":"livepeer","repo":"docs","deployBranch":"fix/simplify-ubuntu-deps","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"}},"buildId":"69d4ec28fb8ada5118d94017:success","clientVersion":"0.0.4410","preview":{"mainDeploymentId":"64ba6ae116af7b43c2e91ffc","mainDeployment":{"subdomain":"na-36","customDomains":["docs.livepeer.org"],"basePath":""}},"searchFilterCounts":[]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"preview":{"mainDeploymentId":"64ba6ae116af7b43c2e91ffc","mainDeployment":{"subdomain":"na-36","customDomains":["docs.livepeer.org"],"basePath":""}},"editorBaseUrl":"https://app.mintlify.com/na-36/na-36/editor/fix%2Fsimplify-ubuntu-deps/~","googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{padding:0!important}:root{--lp-color-accent: #3cb540;--lp-color-accent-strong: #18794e;--lp-color-accent-soft: #6bbf59;--lp-color-accent-bright: #5dd662;--lp-color-accent-brightest: #a0f0a5;--lp-color-arbitrum: #3ea6f8;--lp-color-text-primary: #181c18;--lp-color-text-secondary: #717571;--lp-color-text-muted: #9ca3af;--lp-color-bg-page: #ffffff;--lp-color-bg-card: #f9fafb;--lp-color-bg-elevated: #f3f6f4;--lp-color-bg-subtle: rgba(24, 28, 24, 0.04);--lp-color-bg-overlay: rgba(12, 12, 12, 0.5);--lp-color-border-default: #e5e7eb;--lp-color-border-strong: rgba(24, 28, 24, 0.18);--lp-color-border-inverse: rgba(255, 255, 255, 0.5);--lp-color-on-accent: #ffffff;--lp-color-link: #18794e;--lp-color-link-hover: #004225;--lp-color-brand-discord: #5865f2;--lp-color-brand-forum: #00aeef;--lp-color-brand-github: #181c18;--lp-color-brand-x: #181c18;--lp-color-brand-globe: #00c0ff;--lp-color-brand-twitch: #9048ff;--lp-color-brand-youtube: #ff0034;--lp-color-brand-instagram: #dc2275;--lp-color-brand-linkedin: #0189df;--lp-color-brand-preview: #b636dd;--lp-color-brand-coming-soon: #ef1a73;--lp-color-status-good: #22c55e;--lp-color-status-warn: #fbbf24;--lp-color-status-bad: #ef4444;--lp-spacing-1: 0.25rem;--lp-spacing-2: 0.5rem;--lp-spacing-3: 0.75rem;--lp-spacing-4: 1rem;--lp-spacing-6: 1.5rem;--lp-spacing-8: 2rem;--lp-font-sans: 'Inter', 'Segoe UI', sans-serif;--lp-font-mono: 'SFMono-Regular', 'SF Mono', 'Menlo', monospace;--lp-radius-sm: 0.25rem;--lp-radius-md: 0.5rem;--lp-radius-lg: 0.75rem;--lp-shadow-card: 0 8px 24px rgba(24, 28, 24, 0.08);--lp-z-base: 1;--lp-z-overlay: 10;--lp-z-modal: 50;--accent: var(--lp-color-accent);--accent-dark: var(--lp-color-accent-strong);--hero-text: var(--lp-color-text-primary);--text: var(--lp-color-text-secondary);--text-secondary: var(--lp-color-text-secondary);--muted-text: var(--lp-color-text-muted);--background: var(--lp-color-bg-page);--card-background: var(--lp-color-bg-card);--background-highlight: var(--lp-color-bg-subtle);--border: var(--lp-color-border-default);--button-text: var(--lp-color-on-accent);--page-header-description-color: var(--lp-color-text-secondary);--arbitrum: var(--lp-color-arbitrum)}.dark{--lp-color-accent: #2b9a66;--lp-color-accent-strong: #18794e;--lp-color-accent-soft: #3cb540;--lp-color-accent-bright: #5dd662;--lp-color-accent-brightest: #7fe584;--lp-color-text-primary: #e0e4e0;--lp-color-text-secondary: #a0a4a0;--lp-color-text-muted: #6b7280;--lp-color-bg-page: #0d0d0d;--lp-color-bg-card: #1a1a1a;--lp-color-bg-elevated: #141a16;--lp-color-bg-subtle: rgba(255, 255, 255, 0.1);--lp-color-bg-overlay: rgba(0, 0, 0, 0.5);--lp-color-border-default: #333333;--lp-color-border-strong: rgba(255, 255, 255, 0.3);--lp-color-border-inverse: rgba(255, 255, 255, 0.5);--lp-color-on-accent: #ffffff;--lp-color-link: #5dd662;--lp-color-link-hover: #a0f0a5;--lp-color-brand-github: #f0f0f0;--accent: var(--lp-color-accent);--accent-dark: var(--lp-color-accent-strong);--hero-text: var(--lp-color-text-primary);--text: var(--lp-color-text-secondary);--text-secondary: var(--lp-color-text-secondary);--muted-text: var(--lp-color-text-muted);--background: var(--lp-color-bg-page);--card-background: var(--lp-color-bg-card);--background-highlight: var(--lp-color-bg-subtle);--border: var(--lp-color-border-default);--button-text: var(--lp-color-on-accent);--page-header-description-color: var(--lp-color-text-secondary);--arbitrum: var(--lp-color-arbitrum)}.nav-tabs{width:100%;justify-content:flex-start}@media (min-width: 1024px){#content-container:not(:has(.frame-mode-hero-full)):not(:has(.frame-mode-container)){padding-left:3rem!important;padding-right:3rem!important}#content-container:not(:has(.frame-mode-hero-full)):not(:has(.frame-mode-container))>.max-w-5xl{max-width:72rem!important}#content-container:has(.frame-mode-hero-full),#content-container:has(.frame-mode-container){padding-left:2rem!important;padding-right:2rem!important}#content-container:has(.frame-mode-hero-full)>.max-w-5xl,#content-container:has(.frame-mode-container)>.max-w-5xl{max-width:80rem!important}}#navbar>div.z-10.mx-auto.relative>div.hidden.lg\\:flex.px-12.h-12>div{column-gap:2rem!important}a.nav-tabs-item[href*=\"/internal/\"]{margin-left:1rem;margin-right:-1rem;padding-right:0;border-bottom-color:transparent!important}a.nav-tabs-item[href$=\"/resources/redirect\"],a.nav-tabs-item[href$=\"/resources/resources-portal\"],a.nav-tabs-item[href$=\"/07_resources/redirect\"],a.nav-tabs-item[href$=\"/07_resources/resources-portal\"]{margin-left:auto;background-color:transparent;border:1px solid var(--accent)!important;padding:4px 8px;border-radius:4px;font-size:0.7rem;height:auto!important;align-self:center;margin-right:-2rem}a.nav-tabs-item[href$=\"/resources/redirect\"] svg,a.nav-tabs-item[href$=\"/resources/resources-portal\"] svg,a.nav-tabs-item[href$=\"/07_resources/redirect\"] svg,a.nav-tabs-item[href$=\"/07_resources/resources-portal\"] svg,a.nav-tabs-item[href$=\"/07_resources/resources_hub\"] svg{height:0.75rem;width:0.75rem}a.nav-tabs-item[href$=\"/resources/redirect\"]>div:last-child,a.nav-tabs-item[href$=\"/resources/resources-portal\"]>div:last-child,a.nav-tabs-item[href$=\"/07_resources/redirect\"]>div:last-child,a.nav-tabs-item[href$=\"/07_resources/resources-portal\"]>div:last-child,a.nav-tabs-item[href$=\"/07_resources/resources_hub\"]>div:last-child{display:none}#footer .flex-col .flex.gap-4{flex-direction:column!important;gap:0rem!important}#footer>div{padding-top:2rem!important;padding-bottom:1rem!important}#chat-assistant-sheet[aria-hidden=\"true\"]{display:none!important}button.text-left.text-gray-600.text-sm.font-medium{min-height:24px;padding-top:4px;padding-bottom:4px}[data-component-part=\"card-content-container\"]{padding-right:2.5rem}.code-block>div>div>svg{background-color:#18794e!important}#error-description>span>div>div{border:1px solid #18794e!important}body>div.relative.antialiased.text-gray-500.dark\\:text-gray-400>div.peer-\\[\\.is-not-custom\\]\\:lg\\:flex.peer-\\[\\.is-custom\\]\\:\\[\\\u0026\\>div\\:first-child\\]\\:\\!hidden.peer-\\[\\.is-custom\\]\\:\\[\\\u0026\\>div\\:first-child\\]\\:sm\\:\\!hidden.peer-\\[\\.is-custom\\]\\:\\[\\\u0026\\>div\\:first-child\\]\\:md\\:\\!hidden.peer-\\[\\.is-custom\\]\\:\\[\\\u0026\\>div\\:first-child\\]\\:lg\\:\\!hidden.peer-\\[\\.is-custom\\]\\:\\[\\\u0026\\>div\\:first-child\\]\\:xl\\:\\!hidden>div.flex.flex-col.items-center.justify-center.w-full.max-w-lg.overflow-x-hidden.mx-auto.py-48.px-5.text-center.\\*\\:text-center.gap-y-8.not-found-container>div{margin-top:-5rem}#error-description>span>div>div>div.relative.rounded-xl.overflow-hidden.flex.justify-center>img{width:500px;aspect-ratio:4 / 3;object-fit:cover}#content>div.steps.ml-3\\.5.mt-10.mb-6>div>div.w-full.overflow-hidden.pl-8.pr-px>p{color:#2b9a66!important}.dark .bg-white\\/\\[0\\.95\\].multi-view-dropdown-trigger{background-color:transparent!important;background:none!important}#table-of-contents-layout:empty,#content-side-layout:has(#table-of-contents-layout:empty){display:none}[data-docs-dynamic-table]{table-layout:fixed!important}[data-docs-styled-table-shell]>div{padding-top:0!important;padding-bottom:0!important;margin-top:0!important;margin-bottom:0!important}[data-docs-bordered-box]>:first-child{margin-top:0!important}[data-docs-bordered-box]>:last-child{margin-bottom:0!important}[data-docs-bordered-box][data-accent-bar]::before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:4px;background-color:var(--accent-bar-color);border-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0}.frame-mode-container{width:calc(100% + 96px + 20px);margin-left:-96px;margin-right:-20px;margin-bottom:2rem;padding-left:15%;padding-right:15%;box-sizing:border-box}.frame-mode-hero-full .frame-mode-container{width:100%;margin-left:0;margin-right:0;padding-left:0%;padding-right:0%}[data-page-mode=\"frame\"] #pagination{width:calc(100% + 96px + 20px);margin-left:-96px;margin-right:-20px;padding-left:calc((100% + 96px + 20px) * 0.1 + 96px);padding-right:calc((100% + 96px + 20px) * 0.1 + 20px);box-sizing:border-box}.frame-mode-hero-full{width:calc(100% + 96px + 20px);margin-left:-96px;margin-right:-20px;position:relative}@media (max-width: 1023px){.frame-mode-container{width:100%;margin-left:0;margin-right:0;padding-left:1rem;padding-right:1rem}[data-page-mode=\"frame\"] #pagination{width:100%;margin-left:0;margin-right:0;padding-left:1rem;padding-right:1rem}.frame-mode-hero-full{width:100%;margin-left:0;margin-right:0}}#starfield{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.frame-mode-hero-full [data-component-part=\"card-content-container\"]{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:2.5rem}.frame-mode-hero-full #card-link-arrow-icon{top:0.75rem;right:0.75rem}"}]}
{"page":{"pagePath":"v1/sdks/react/broadcast/useBroadcastContext","slug":"/v1/sdks/react/broadcast/useBroadcastContext","pageMetadata":{"title":"useBroadcastContext","description":"The `useBroadcastContext` hook lets you build custom components which interact directly with the Broadcast state store.","icon":"database","href":"/v1/sdks/react/broadcast/useBroadcastContext"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"The \", _jsx(_components.code, {\n children: \"useBroadcastContext\"\n }), \" hook lets you build custom components which interact directly with the Broadcast state store.\"]\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,Heading,Info,OptimizedFrame,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedFrame)_missingMdxReference(`OptimizedFrame`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(OptimizedFrame,{src:`https://ui-kit-docs-embed.vercel.app/broadcast/use_broadcast_context`,height:`600px`,width:`100%`,frameBorder:`0`,allowFullScreen:true,allow:`autoplay; encrypted-media; fullscreen; picture-in-picture; display-capture; camera; microphone`,style:{borderRadius:10,backgroundColor:`black`}}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`useStore`}),` hook is from\n`,_jsx(_components.a,{href:`https://github.com/pmndrs/zustand?tab=readme-ov-file#using-zustand-without-react`,children:_jsx(_components.code,{children:`zustand`})}),`,\nand inherits all of the documentation for Zustand stores.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`features`,children:`Features`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Flexible interaction with the broadcast state store`}),`\n`,_jsxs(_components.li,{children:[`Based on Zustand’s `,_jsx(_components.code,{children:`useStore`}),` hooks`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`anatomy`,children:`Anatomy`}),`\n`,_jsx(_components.p,{children:`Import the components and piece the parts together.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` *`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` Broadcast`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"@livepeer/react/broadcast\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`useBroadcastContext`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`useStore`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"@livepeer/react/broadcast\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`Broadcast.Root`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#569CD6`},children:` {`}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:\"/** The `useBroadcastContext` hook can be used in any component,\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` as long as it's inside the Broadcast.Root React Context provider */`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`CustomComponent`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`Broadcast.Root`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` CustomComponent`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` style`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` __scopeBroadcast`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` Broadcast`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:`BroadcastScopedProps`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c{}>) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` context`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` useBroadcastContext`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"CustomComponent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`__scopeBroadcast`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` // use selectors with the Zustand store, to make sure your component doesn't render`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` // on every store state change`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:`status`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` useStore`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`context`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`store`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, ({ `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` status`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }));`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` status`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`state`,children:`State`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`useBroadcastContext`}),` hook returns a Zustand store, which contains the\n`,_jsx(_components.code,{children:`BroadcastState`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`aria`,children:_jsx(_components.code,{children:`aria`})}),`\n`,_jsx(_components.p,{children:`The ARIA text for the controls given the current state.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` BroadcastAriaText`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` audioTrigger`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` start`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` screenshareTrigger`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` videoTrigger`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`audio`,children:_jsx(_components.code,{children:`audio`})}),`\n`,_jsx(_components.p,{children:`Indicates whether the broadcast’s audio track is turned on.`}),`\n`,_jsx(Heading,{level:`3`,id:`enabled`,children:_jsx(_components.code,{children:`enabled`})}),`\n`,_jsx(_components.p,{children:`Specifies whether the broadcast is currently active or in “preview” mode.`}),`\n`,_jsx(Heading,{level:`3`,id:`hydrated`,children:_jsx(_components.code,{children:`hydrated`})}),`\n`,_jsx(_components.p,{children:`Reflects whether the broadcast store is hydrated, indicating if initial data has\nbeen loaded into the state.`}),`\n`,_jsx(Heading,{level:`3`,id:`mediadevices`,children:_jsx(_components.code,{children:`mediaDevices`})}),`\n`,_jsxs(_components.p,{children:[`A list of the current media devices (based on\n`,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo`,children:`MediaDeviceInfo`}),`),\nwhich changes based on permissions or when a user starts sharing their display.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` MediaDeviceInfoExtended`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` Omit`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:`MediaDeviceInfo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"toJSON\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * This is a convenience field added to MediaDeviceInfo to help easily add a device picker.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` *`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * For security reasons, the label field will blank unless an active media stream exists`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * or the user has granted persistent permission for media device access. The set of device labels`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * could otherwise be used as part of a fingerprinting mechanism to identify a user.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` *`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * When the label field is not blank, these are the same value. Otherwise, the value is a friendly default.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` friendlyName`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` /**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * For security reasons, the label field is blank unless an active media stream exists`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * or the user has granted persistent permission for media device access. The set of device labels`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * could otherwise be used as part of a fingerprinting mechanism to identify a user.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` *`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` * We override it here to be null when it is blank, for easier developer usage.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` label`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`mediaDevices`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`MediaDeviceInfoExtended`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`[] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`mediastream`,children:_jsx(_components.code,{children:`mediaStream`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/API/MediaStream`,children:`MediaStream`}),`\nfor the current broadcast, containing the audio and video tracks.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`mediaStream`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`MediaStream`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`mounted`,children:_jsx(_components.code,{children:`mounted`})}),`\n`,_jsx(_components.p,{children:`Whether the broadcast component is currently mounted in the DOM.`}),`\n`,_jsx(Heading,{level:`3`,id:`peerconnection`,children:_jsx(_components.code,{children:`peerConnection`})}),`\n`,_jsxs(_components.p,{children:[`The\n`,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection`,children:`RTCPeerConnection`}),`\nobject for the broadcast, managing the connection between the local and remote\npeers.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`peerConnection`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`RTCPeerConnection`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`status`,children:_jsx(_components.code,{children:`status`})}),`\n`,_jsx(_components.p,{children:`The current status of the broadcast, which can be “live”, “pending”, or “idle”.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`status`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"live\"`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"pending\"`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"idle\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`ingesturl`,children:_jsx(_components.code,{children:`ingestUrl`})}),`\n`,_jsx(_components.p,{children:`The WHIP ingest URL used for the broadcast.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`ingestUrl`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`video`,children:_jsx(_components.code,{children:`video`})}),`\n`,_jsx(_components.p,{children:`Indicates if the broadcast’s video track is turned on.`}),`\n`,_jsx(Heading,{level:`3`,id:`mediadeviceids`,children:_jsx(_components.code,{children:`mediaDeviceIds`})}),`\n`,_jsx(_components.p,{children:`The IDs of the currently selected media devices.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`mediaDeviceIds`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`MediaDeviceIds`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`__initialprops`,children:_jsx(_components.code,{children:`__initialProps`})}),`\n`,_jsx(_components.p,{children:`The initial properties passed into the broadcast component. This is an internal\nobject used by Broadcast.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`__initialProps`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`InitialBroadcastProps`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`__device`,children:_jsx(_components.code,{children:`__device`})}),`\n`,_jsx(_components.p,{children:`Information about the broadcast device’s capabilities and support. This is an\ninternal object used by Broadcast, but can be used for detecting device\ncapabilities.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` BroadcastDeviceInformation`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` version`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` /** If the environment supports mediaDevices */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` isMediaDevicesSupported`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` /** If the environment supports RTCPeerConnection */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` isRTCPeerConnectionSupported`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:` /** If the environment supports sharing display media */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` isDisplayMediaSupported`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`__device`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`BroadcastDeviceInformation`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`__controls`,children:_jsx(_components.code,{children:`__controls`})}),`\n`,_jsx(_components.p,{children:`The current state of broadcast controls. This is an internal object used by\nBroadcast.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`__controls`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`BroadcastControlsState`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`__controlsfunctions`,children:_jsx(_components.code,{children:`__controlsFunctions`})}),`\n`,_jsx(_components.p,{children:`An object containing functions to manipulate the broadcast’s state, such as\ntoggling audio/video, updating the media stream, and setting the peer\nconnection.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`These functions are internal - please refer to the UI Kit source code before\ninteracting with these functions.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:`__controlsFunctions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` requestDeviceListInfo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` requestForceRenegotiate`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` requestMediaDeviceId`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`deviceId`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` AudioDeviceId`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` keyof`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` MediaDeviceIds`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` rotateAudioSource`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` rotateVideoSource`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` setIngestUrl`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`ingestUrl`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` setInitialState`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`ids`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` MediaDeviceIds`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`audio`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`video`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` setPeerConnection`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`peerConnection`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` RTCPeerConnection`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` setStatus`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` BroadcastStatus`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` setMediaDeviceIds`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`mediaDevices`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` Partial`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:`MediaDeviceIds`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`>) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` toggleAudio`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` toggleDisplayMedia`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` toggleEnabled`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` toggleVideo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: () `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` updateDeviceList`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`mediaDevices`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` MediaDeviceInfo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`[]) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#C8C8C8`},children:` updateMediaStream`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`mediaStream`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` MediaStream`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--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":{"codeStyling":{"theme":{"light":"github-light","dark":"dark-plus"}},"config":{},"pageMetadata":{"title":"useBroadcastContext","description":"The `useBroadcastContext` hook lets you build custom components which interact directly with the Broadcast state store.","icon":"database","href":"/v1/sdks/react/broadcast/useBroadcastContext"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Features","slug":"features","depth":2,"children":[]},{"title":"Anatomy","slug":"anatomy","depth":2,"children":[]},{"title":"State","slug":"state","depth":2,"children":[{"title":"aria","slug":"aria","depth":3,"children":[]},{"title":"audio","slug":"audio","depth":3,"children":[]},{"title":"enabled","slug":"enabled","depth":3,"children":[]},{"title":"hydrated","slug":"hydrated","depth":3,"children":[]},{"title":"mediaDevices","slug":"mediadevices","depth":3,"children":[]},{"title":"mediaStream","slug":"mediastream","depth":3,"children":[]},{"title":"mounted","slug":"mounted","depth":3,"children":[]},{"title":"peerConnection","slug":"peerconnection","depth":3,"children":[]},{"title":"status","slug":"status","depth":3,"children":[]},{"title":"ingestUrl","slug":"ingesturl","depth":3,"children":[]},{"title":"video","slug":"video","depth":3,"children":[]},{"title":"mediaDeviceIds","slug":"mediadeviceids","depth":3,"children":[]},{"title":"__initialProps","slug":"__initialprops","depth":3,"children":[]},{"title":"__device","slug":"__device","depth":3,"children":[]},{"title":"__controls","slug":"__controls","depth":3,"children":[]},{"title":"__controlsFunctions","slug":"__controlsfunctions","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/na-36-fix-simplify-ubuntu-deps/86044cb4146efff0/snippets/components/integrators/feeds/contractVerifierData.js","/_mintlify/custom/na-36-fix-simplify-ubuntu-deps/943f25bb7ac7d121/snippets/data/contract-addresses/view-model.js","/_mintlify/custom/na-36-fix-simplify-ubuntu-deps/298086d7bf262a7f/snippets/data/gateways/configuration-flags.js","/_mintlify/custom/na-36-fix-simplify-ubuntu-deps/ce2de808f20bf288/snippets/data/social-feeds/transformers/filterVideos.js","/_mintlify/custom/na-36-fix-simplify-ubuntu-deps/cd0b73bc6b3814c0/v2/about/protocol/data/blockchain-contracts-addresses.js","/_mintlify/custom/na-36-fix-simplify-ubuntu-deps/15325830a8aed988/v2/about/protocol/data/blockchain-contracts-links.js"],"subdomain":"na-36-fix-simplify-ubuntu-deps","siteName":"Livepeer Docs","title":"useBroadcastContext - Livepeer Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v1":{"href":"/v1/sdks/react/broadcast/useBroadcastContext","matchLevel":0},"v2":{"href":"/v2/home/mission-control","matchLevel":4}},"firstHrefInLanguage":{"en":{"href":"/v1/sdks/react/broadcast/useBroadcastContext","matchLevel":0}}},"lastModified":"2026-04-07T11:40:39.070Z","originalFileLocation":"v1/sdks/react/broadcast/useBroadcastContext.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"dark\"}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=\"The useBroadcastContext hook lets you build custom components which interact directly with the Broadcast state store.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Livepeer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex, nofollow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"useBroadcastContext - Livepeer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The useBroadcastContext hook lets you build custom components which interact directly with the Broadcast state store.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Livepeer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://na-36-fix-simplify-ubuntu-deps.mintlify.app/v1/sdks/react/broadcast/useBroadcastContext\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://na-36-fix-simplify-ubuntu-deps.mintlify.site/_mintlify/api/og/v2?division=Functions\u0026amp;title=useBroadcastContext\u0026amp;description=The+%60useBroadcastContext%60+hook+lets+you+build+custom+components+which+interact+directly+with+the+Broadcast+state+store.\u0026amp;theme=a301ca5c19b322b9a5838d85\u0026amp;signature=d9b85132ca533eac3d700c0563f05ba25d08fdd7cb802f1477cf3f4a2d97dff0\">\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=\"useBroadcastContext - Livepeer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The useBroadcastContext hook lets you build custom components which interact directly with the Broadcast state store.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://na-36-fix-simplify-ubuntu-deps.mintlify.site/_mintlify/api/og/v2?division=Functions\u0026amp;title=useBroadcastContext\u0026amp;description=The+%60useBroadcastContext%60+hook+lets+you+build+custom+components+which+interact+directly+with+the+Broadcast+state+store.\u0026amp;theme=a301ca5c19b322b9a5838d85\u0026amp;signature=d9b85132ca533eac3d700c0563f05ba25d08fdd7cb802f1477cf3f4a2d97dff0\">\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/na-36-fix-simplify-ubuntu-deps/n27bjCKXLNvD5Xy-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Livepeer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3CB540\">\u003clink data-mint-head rel=\"canonical\" href=\"https://na-36-fix-simplify-ubuntu-deps.mintlify.app/v1/sdks/react/broadcast/useBroadcastContext\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v1/sdks/react/broadcast/useBroadcastContext.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Livepeer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Livepeer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v1/sdks/react/broadcast/useBroadcastContext.md","siteName":"Livepeer Docs","nav":{"global":null,"versions":[{"version":"v1","default":true,"languages":[{"language":"en","dropdowns":[{"dropdown":"Developers","icon":"code","anchors":[{"anchor":"Documentation","icon":"code","pages":[{"title":"Documentation","href":"/v1/developers/introduction"}]},{"anchor":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/v1/api-reference/overview/introduction"}]},{"anchor":"SDKs","icon":"brackets-curly","groups":[{"group":"Overview","pages":[{"title":"SDKs","sidebarTitle":"Introduction","href":"/v1/sdks/introduction"}]},{"group":"Server-side SDKs","pages":[{"title":"JavaScript","icon":"js","href":"/v1/sdks/javascript"},{"title":"Go","icon":"golang","href":"/v1/sdks/go"},{"title":"Python","icon":"python","href":"/v1/sdks/python"}]},{"group":"React Components","icon":"circle-play","pages":[{"title":"Getting Started","href":"/v1/sdks/react/getting-started"},{"group":"Player","icon":"circle-play","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/player/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/player/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/player/Video"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/player/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/player/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/player/Portal"},{"title":"Poster","icon":"image","href":"/v1/sdks/react/player/Poster"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/player/Controls"},{"title":"Clip","icon":"scissors","href":"/v1/sdks/react/player/Clip"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/player/Fullscreen"},{"title":"Live","icon":"headset","href":"/v1/sdks/react/player/Live"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/player/PictureInPicture"},{"title":"Play","icon":"play","href":"/v1/sdks/react/player/Play"},{"title":"Playback Speed","icon":"gauge-simple-high","href":"/v1/sdks/react/player/RateSelect"},{"title":"Seek","icon":"forward","href":"/v1/sdks/react/player/Seek"},{"title":"Time","icon":"clock","href":"/v1/sdks/react/player/Time"},{"title":"Video Quality","icon":"signal","href":"/v1/sdks/react/player/VideoQualitySelect"},{"title":"Volume","icon":"volume-high","href":"/v1/sdks/react/player/Volume"}]},{"group":"Functions","pages":[{"title":"getSrc","icon":"link","href":"/v1/sdks/react/player/get-src"},{"title":"useMediaContext","icon":"database","href":"/v1/sdks/react/player/useMediaContext"}]}]},{"group":"Broadcast","icon":"signal-stream","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/broadcast/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/broadcast/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/broadcast/Video"},{"title":"Enable","icon":"clapperboard","href":"/v1/sdks/react/broadcast/Enabled"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/broadcast/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/broadcast/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/broadcast/Portal"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/broadcast/Controls"},{"title":"Audio","icon":"microphone-stand","href":"/v1/sdks/react/broadcast/Audio"},{"title":"Camera","icon":"camcorder","href":"/v1/sdks/react/broadcast/Camera"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/broadcast/Fullscreen"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/broadcast/PictureInPicture"},{"title":"Screenshare","icon":"screencast","href":"/v1/sdks/react/broadcast/Screenshare"},{"title":"Source","icon":"sliders","href":"/v1/sdks/react/broadcast/Source"},{"title":"Status","icon":"wave-pulse","href":"/v1/sdks/react/broadcast/Status"}]},{"group":"Functions","pages":[{"title":"getIngest","description":"`getIngest` is a utility function for converting various types of ingest information into a standardized WHIP URL format suitable for broadcasting.","icon":"link","href":"/v1/sdks/react/broadcast/get-ingest"},{"title":"useBroadcastContext","icon":"database","href":"/v1/sdks/react/broadcast/useBroadcastContext"}]}]},{"group":"Examples","icon":"clipboard","pages":[{"title":"Player","description":"A comprehensive example showcasing the integration of various `@livepeer/react/player` components to create a full-featured player interface with controls and settings.","href":"/v1/sdks/react/Player"},{"title":"Broadcast","href":"/v1/sdks/react/Broadcast"}]},{"group":"Migration","icon":"right-left","pages":[{"title":"Migration Guide for 4+","href":"/v1/sdks/react/migration/migration-4.x"},{"group":"Livepeer React (3.x and below)","pages":[{"title":"Getting Started","href":"/v1/sdks/react/migration/3.x/getting-started"},{"title":"Client","href":"/v1/sdks/react/migration/3.x/client"},{"title":"LivepeerConfig","href":"/v1/sdks/react/migration/3.x/LivepeerConfig"},{"title":"Player","href":"/v1/sdks/react/migration/3.x/Player"},{"title":"Broadcast","href":"/v1/sdks/react/migration/3.x/Broadcast"},{"group":"Asset","pages":[{"title":"useCreateAsset","href":"/v1/sdks/react/migration/3.x/asset/useCreateAsset"},{"title":"useAsset","href":"/v1/sdks/react/migration/3.x/asset/useAsset"},{"title":"useUpdateAsset","href":"/v1/sdks/react/migration/3.x/asset/useUpdateAsset"},{"title":"useAssetMetrics","href":"/v1/sdks/react/migration/3.x/asset/useAssetMetrics"}]},{"group":"Stream","pages":[{"title":"useCreateStream","href":"/v1/sdks/react/migration/3.x/stream/useCreateStream"},{"title":"useStream","href":"/v1/sdks/react/migration/3.x/stream/useStream"},{"title":"useUpdateStream","href":"/v1/sdks/react/migration/3.x/stream/useUpdateStream"},{"title":"useStreamSession","href":"/v1/sdks/react/migration/3.x/stream/useStreamSession"},{"title":"useStreamSessions","href":"/v1/sdks/react/migration/3.x/stream/useStreamSessions"}]},{"group":"Playback","pages":[{"title":"usePlaybackInfo","href":"/v1/sdks/react/migration/3.x/playback/usePlaybackInfo"}]},{"group":"Constants","pages":[{"title":"Application Binary Interface","href":"/v1/sdks/react/migration/3.x/constants/abis"},{"title":"Contract Addresses","href":"/v1/sdks/react/migration/3.x/constants/contract-addresses"}]}]}]}]}]},{"anchor":"AI Video (Beta)","icon":{"style":"regular","name":"microchip-ai"},"pages":[{"title":"AI Video (Beta)","href":"/v1/ai/introduction"}]},{"anchor":" ","icon":"horizontal-rule"},{"anchor":"Livepeer Studio ➚","icon":"clapperboard-play","href":"https://livepeer.studio"},{"anchor":"What's New ➚","icon":"rocket","href":"https://livepeer.canny.io/changelog"},{"anchor":"Community ➚","icon":{"style":"brands","name":"discord"},"href":"https://discord.gg/livepeer"}]},{"dropdown":"Delegators","icon":"coins","anchors":[{"anchor":"Documentation","icon":"code","pages":[{"title":"Documentation","href":"/v1/delegators/introduction"}]},{"anchor":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/v1/api-reference/overview/introduction"}]},{"anchor":"SDKs","icon":"brackets-curly","groups":[{"group":"Overview","pages":[{"title":"SDKs","sidebarTitle":"Introduction","href":"/v1/sdks/introduction"}]},{"group":"Server-side SDKs","pages":[{"title":"JavaScript","icon":"js","href":"/v1/sdks/javascript"},{"title":"Go","icon":"golang","href":"/v1/sdks/go"},{"title":"Python","icon":"python","href":"/v1/sdks/python"}]},{"group":"React Components","icon":"circle-play","pages":[{"title":"Getting Started","href":"/v1/sdks/react/getting-started"},{"group":"Player","icon":"circle-play","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/player/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/player/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/player/Video"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/player/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/player/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/player/Portal"},{"title":"Poster","icon":"image","href":"/v1/sdks/react/player/Poster"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/player/Controls"},{"title":"Clip","icon":"scissors","href":"/v1/sdks/react/player/Clip"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/player/Fullscreen"},{"title":"Live","icon":"headset","href":"/v1/sdks/react/player/Live"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/player/PictureInPicture"},{"title":"Play","icon":"play","href":"/v1/sdks/react/player/Play"},{"title":"Playback Speed","icon":"gauge-simple-high","href":"/v1/sdks/react/player/RateSelect"},{"title":"Seek","icon":"forward","href":"/v1/sdks/react/player/Seek"},{"title":"Time","icon":"clock","href":"/v1/sdks/react/player/Time"},{"title":"Video Quality","icon":"signal","href":"/v1/sdks/react/player/VideoQualitySelect"},{"title":"Volume","icon":"volume-high","href":"/v1/sdks/react/player/Volume"}]},{"group":"Functions","pages":[{"title":"getSrc","icon":"link","href":"/v1/sdks/react/player/get-src"},{"title":"useMediaContext","icon":"database","href":"/v1/sdks/react/player/useMediaContext"}]}]},{"group":"Broadcast","icon":"signal-stream","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/broadcast/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/broadcast/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/broadcast/Video"},{"title":"Enable","icon":"clapperboard","href":"/v1/sdks/react/broadcast/Enabled"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/broadcast/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/broadcast/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/broadcast/Portal"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/broadcast/Controls"},{"title":"Audio","icon":"microphone-stand","href":"/v1/sdks/react/broadcast/Audio"},{"title":"Camera","icon":"camcorder","href":"/v1/sdks/react/broadcast/Camera"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/broadcast/Fullscreen"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/broadcast/PictureInPicture"},{"title":"Screenshare","icon":"screencast","href":"/v1/sdks/react/broadcast/Screenshare"},{"title":"Source","icon":"sliders","href":"/v1/sdks/react/broadcast/Source"},{"title":"Status","icon":"wave-pulse","href":"/v1/sdks/react/broadcast/Status"}]},{"group":"Functions","pages":[{"title":"getIngest","description":"`getIngest` is a utility function for converting various types of ingest information into a standardized WHIP URL format suitable for broadcasting.","icon":"link","href":"/v1/sdks/react/broadcast/get-ingest"},{"title":"useBroadcastContext","icon":"database","href":"/v1/sdks/react/broadcast/useBroadcastContext"}]}]},{"group":"Examples","icon":"clipboard","pages":[{"title":"Player","description":"A comprehensive example showcasing the integration of various `@livepeer/react/player` components to create a full-featured player interface with controls and settings.","href":"/v1/sdks/react/Player"},{"title":"Broadcast","href":"/v1/sdks/react/Broadcast"}]},{"group":"Migration","icon":"right-left","pages":[{"title":"Migration Guide for 4+","href":"/v1/sdks/react/migration/migration-4.x"},{"group":"Livepeer React (3.x and below)","pages":[{"title":"Getting Started","href":"/v1/sdks/react/migration/3.x/getting-started"},{"title":"Client","href":"/v1/sdks/react/migration/3.x/client"},{"title":"LivepeerConfig","href":"/v1/sdks/react/migration/3.x/LivepeerConfig"},{"title":"Player","href":"/v1/sdks/react/migration/3.x/Player"},{"title":"Broadcast","href":"/v1/sdks/react/migration/3.x/Broadcast"},{"group":"Asset","pages":[{"title":"useCreateAsset","href":"/v1/sdks/react/migration/3.x/asset/useCreateAsset"},{"title":"useAsset","href":"/v1/sdks/react/migration/3.x/asset/useAsset"},{"title":"useUpdateAsset","href":"/v1/sdks/react/migration/3.x/asset/useUpdateAsset"},{"title":"useAssetMetrics","href":"/v1/sdks/react/migration/3.x/asset/useAssetMetrics"}]},{"group":"Stream","pages":[{"title":"useCreateStream","href":"/v1/sdks/react/migration/3.x/stream/useCreateStream"},{"title":"useStream","href":"/v1/sdks/react/migration/3.x/stream/useStream"},{"title":"useUpdateStream","href":"/v1/sdks/react/migration/3.x/stream/useUpdateStream"},{"title":"useStreamSession","href":"/v1/sdks/react/migration/3.x/stream/useStreamSession"},{"title":"useStreamSessions","href":"/v1/sdks/react/migration/3.x/stream/useStreamSessions"}]},{"group":"Playback","pages":[{"title":"usePlaybackInfo","href":"/v1/sdks/react/migration/3.x/playback/usePlaybackInfo"}]},{"group":"Constants","pages":[{"title":"Application Binary Interface","href":"/v1/sdks/react/migration/3.x/constants/abis"},{"title":"Contract Addresses","href":"/v1/sdks/react/migration/3.x/constants/contract-addresses"}]}]}]}]}]},{"anchor":"AI Video (Beta)","icon":{"style":"regular","name":"microchip-ai"},"pages":[{"title":"AI Video (Beta)","href":"/v1/ai/introduction"}]},{"anchor":" ","icon":"horizontal-rule"},{"anchor":"Livepeer Studio ➚","icon":"clapperboard-play","href":"https://livepeer.studio"},{"anchor":"What's New ➚","icon":"rocket","href":"https://livepeer.canny.io/changelog"},{"anchor":"Community ➚","icon":{"style":"brands","name":"discord"},"href":"https://discord.gg/livepeer"}]},{"dropdown":"Orchestrators","icon":"microchip","anchors":[{"anchor":"Documentation","icon":"code","pages":[{"title":"Documentation","href":"/v1/orchestrators/introduction"}]},{"anchor":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/v1/api-reference/overview/introduction"}]},{"anchor":"SDKs","icon":"brackets-curly","groups":[{"group":"Overview","pages":[{"title":"SDKs","sidebarTitle":"Introduction","href":"/v1/sdks/introduction"}]},{"group":"Server-side SDKs","pages":[{"title":"JavaScript","icon":"js","href":"/v1/sdks/javascript"},{"title":"Go","icon":"golang","href":"/v1/sdks/go"},{"title":"Python","icon":"python","href":"/v1/sdks/python"}]},{"group":"React Components","icon":"circle-play","pages":[{"title":"Getting Started","href":"/v1/sdks/react/getting-started"},{"group":"Player","icon":"circle-play","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/player/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/player/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/player/Video"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/player/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/player/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/player/Portal"},{"title":"Poster","icon":"image","href":"/v1/sdks/react/player/Poster"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/player/Controls"},{"title":"Clip","icon":"scissors","href":"/v1/sdks/react/player/Clip"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/player/Fullscreen"},{"title":"Live","icon":"headset","href":"/v1/sdks/react/player/Live"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/player/PictureInPicture"},{"title":"Play","icon":"play","href":"/v1/sdks/react/player/Play"},{"title":"Playback Speed","icon":"gauge-simple-high","href":"/v1/sdks/react/player/RateSelect"},{"title":"Seek","icon":"forward","href":"/v1/sdks/react/player/Seek"},{"title":"Time","icon":"clock","href":"/v1/sdks/react/player/Time"},{"title":"Video Quality","icon":"signal","href":"/v1/sdks/react/player/VideoQualitySelect"},{"title":"Volume","icon":"volume-high","href":"/v1/sdks/react/player/Volume"}]},{"group":"Functions","pages":[{"title":"getSrc","icon":"link","href":"/v1/sdks/react/player/get-src"},{"title":"useMediaContext","icon":"database","href":"/v1/sdks/react/player/useMediaContext"}]}]},{"group":"Broadcast","icon":"signal-stream","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/broadcast/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/broadcast/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/broadcast/Video"},{"title":"Enable","icon":"clapperboard","href":"/v1/sdks/react/broadcast/Enabled"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/broadcast/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/broadcast/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/broadcast/Portal"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/broadcast/Controls"},{"title":"Audio","icon":"microphone-stand","href":"/v1/sdks/react/broadcast/Audio"},{"title":"Camera","icon":"camcorder","href":"/v1/sdks/react/broadcast/Camera"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/broadcast/Fullscreen"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/broadcast/PictureInPicture"},{"title":"Screenshare","icon":"screencast","href":"/v1/sdks/react/broadcast/Screenshare"},{"title":"Source","icon":"sliders","href":"/v1/sdks/react/broadcast/Source"},{"title":"Status","icon":"wave-pulse","href":"/v1/sdks/react/broadcast/Status"}]},{"group":"Functions","pages":[{"title":"getIngest","description":"`getIngest` is a utility function for converting various types of ingest information into a standardized WHIP URL format suitable for broadcasting.","icon":"link","href":"/v1/sdks/react/broadcast/get-ingest"},{"title":"useBroadcastContext","icon":"database","href":"/v1/sdks/react/broadcast/useBroadcastContext"}]}]},{"group":"Examples","icon":"clipboard","pages":[{"title":"Player","description":"A comprehensive example showcasing the integration of various `@livepeer/react/player` components to create a full-featured player interface with controls and settings.","href":"/v1/sdks/react/Player"},{"title":"Broadcast","href":"/v1/sdks/react/Broadcast"}]},{"group":"Migration","icon":"right-left","pages":[{"title":"Migration Guide for 4+","href":"/v1/sdks/react/migration/migration-4.x"},{"group":"Livepeer React (3.x and below)","pages":[{"title":"Getting Started","href":"/v1/sdks/react/migration/3.x/getting-started"},{"title":"Client","href":"/v1/sdks/react/migration/3.x/client"},{"title":"LivepeerConfig","href":"/v1/sdks/react/migration/3.x/LivepeerConfig"},{"title":"Player","href":"/v1/sdks/react/migration/3.x/Player"},{"title":"Broadcast","href":"/v1/sdks/react/migration/3.x/Broadcast"},{"group":"Asset","pages":[{"title":"useCreateAsset","href":"/v1/sdks/react/migration/3.x/asset/useCreateAsset"},{"title":"useAsset","href":"/v1/sdks/react/migration/3.x/asset/useAsset"},{"title":"useUpdateAsset","href":"/v1/sdks/react/migration/3.x/asset/useUpdateAsset"},{"title":"useAssetMetrics","href":"/v1/sdks/react/migration/3.x/asset/useAssetMetrics"}]},{"group":"Stream","pages":[{"title":"useCreateStream","href":"/v1/sdks/react/migration/3.x/stream/useCreateStream"},{"title":"useStream","href":"/v1/sdks/react/migration/3.x/stream/useStream"},{"title":"useUpdateStream","href":"/v1/sdks/react/migration/3.x/stream/useUpdateStream"},{"title":"useStreamSession","href":"/v1/sdks/react/migration/3.x/stream/useStreamSession"},{"title":"useStreamSessions","href":"/v1/sdks/react/migration/3.x/stream/useStreamSessions"}]},{"group":"Playback","pages":[{"title":"usePlaybackInfo","href":"/v1/sdks/react/migration/3.x/playback/usePlaybackInfo"}]},{"group":"Constants","pages":[{"title":"Application Binary Interface","href":"/v1/sdks/react/migration/3.x/constants/abis"},{"title":"Contract Addresses","href":"/v1/sdks/react/migration/3.x/constants/contract-addresses"}]}]}]}]}]},{"anchor":"AI Video (Beta)","icon":{"style":"regular","name":"microchip-ai"},"pages":[{"title":"AI Video (Beta)","href":"/v1/ai/introduction"}]},{"anchor":" ","icon":"horizontal-rule"},{"anchor":"Livepeer Studio ➚","icon":"clapperboard-play","href":"https://livepeer.studio"},{"anchor":"What's New ➚","icon":"rocket","href":"https://livepeer.canny.io/changelog"},{"anchor":"Community ➚","icon":{"style":"brands","name":"discord"},"href":"https://discord.gg/livepeer"}]},{"dropdown":"Gateways","icon":"torii-gate","anchors":[{"anchor":"Documentation","icon":"code","pages":[{"title":"Documentation","href":"/v1/gateways/introduction"}]},{"anchor":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/v1/api-reference/overview/introduction"}]},{"anchor":"SDKs","icon":"brackets-curly","groups":[{"group":"Overview","pages":[{"title":"SDKs","sidebarTitle":"Introduction","href":"/v1/sdks/introduction"}]},{"group":"Server-side SDKs","pages":[{"title":"JavaScript","icon":"js","href":"/v1/sdks/javascript"},{"title":"Go","icon":"golang","href":"/v1/sdks/go"},{"title":"Python","icon":"python","href":"/v1/sdks/python"}]},{"group":"React Components","icon":"circle-play","pages":[{"title":"Getting Started","href":"/v1/sdks/react/getting-started"},{"group":"Player","icon":"circle-play","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/player/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/player/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/player/Video"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/player/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/player/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/player/Portal"},{"title":"Poster","icon":"image","href":"/v1/sdks/react/player/Poster"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/player/Controls"},{"title":"Clip","icon":"scissors","href":"/v1/sdks/react/player/Clip"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/player/Fullscreen"},{"title":"Live","icon":"headset","href":"/v1/sdks/react/player/Live"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/player/PictureInPicture"},{"title":"Play","icon":"play","href":"/v1/sdks/react/player/Play"},{"title":"Playback Speed","icon":"gauge-simple-high","href":"/v1/sdks/react/player/RateSelect"},{"title":"Seek","icon":"forward","href":"/v1/sdks/react/player/Seek"},{"title":"Time","icon":"clock","href":"/v1/sdks/react/player/Time"},{"title":"Video Quality","icon":"signal","href":"/v1/sdks/react/player/VideoQualitySelect"},{"title":"Volume","icon":"volume-high","href":"/v1/sdks/react/player/Volume"}]},{"group":"Functions","pages":[{"title":"getSrc","icon":"link","href":"/v1/sdks/react/player/get-src"},{"title":"useMediaContext","icon":"database","href":"/v1/sdks/react/player/useMediaContext"}]}]},{"group":"Broadcast","icon":"signal-stream","pages":[{"title":"Root","icon":"flag-checkered","href":"/v1/sdks/react/broadcast/Root"},{"title":"Container","icon":"tv","href":"/v1/sdks/react/broadcast/Container"},{"title":"Video","icon":"video","href":"/v1/sdks/react/broadcast/Video"},{"title":"Enable","icon":"clapperboard","href":"/v1/sdks/react/broadcast/Enabled"},{"title":"Error","icon":"triangle-exclamation","href":"/v1/sdks/react/broadcast/Error"},{"title":"Loading","icon":"spinner","href":"/v1/sdks/react/broadcast/Loading"},{"title":"Portal","icon":"person-to-portal","href":"/v1/sdks/react/broadcast/Portal"},{"group":"Controls","pages":[{"title":"Controls","icon":"gamepad","href":"/v1/sdks/react/broadcast/Controls"},{"title":"Audio","icon":"microphone-stand","href":"/v1/sdks/react/broadcast/Audio"},{"title":"Camera","icon":"camcorder","href":"/v1/sdks/react/broadcast/Camera"},{"title":"Fullscreen","icon":"expand","href":"/v1/sdks/react/broadcast/Fullscreen"},{"title":"Picture in Picture","icon":"clone","href":"/v1/sdks/react/broadcast/PictureInPicture"},{"title":"Screenshare","icon":"screencast","href":"/v1/sdks/react/broadcast/Screenshare"},{"title":"Source","icon":"sliders","href":"/v1/sdks/react/broadcast/Source"},{"title":"Status","icon":"wave-pulse","href":"/v1/sdks/react/broadcast/Status"}]},{"group":"Functions","pages":[{"title":"getIngest","description":"`getIngest` is a utility function for converting various types of ingest information into a standardized WHIP URL format suitable for broadcasting.","icon":"link","href":"/v1/sdks/react/broadcast/get-ingest"},{"title":"useBroadcastContext","icon":"database","href":"/v1/sdks/react/broadcast/useBroadcastContext"}]}]},{"group":"Examples","icon":"clipboard","pages":[{"title":"Player","description":"A comprehensive example showcasing the integration of various `@livepeer/react/player` components to create a full-featured player interface with controls and settings.","href":"/v1/sdks/react/Player"},{"title":"Broadcast","href":"/v1/sdks/react/Broadcast"}]},{"group":"Migration","icon":"right-left","pages":[{"title":"Migration Guide for 4+","href":"/v1/sdks/react/migration/migration-4.x"},{"group":"Livepeer React (3.x and below)","pages":[{"title":"Getting Started","href":"/v1/sdks/react/migration/3.x/getting-started"},{"title":"Client","href":"/v1/sdks/react/migration/3.x/client"},{"title":"LivepeerConfig","href":"/v1/sdks/react/migration/3.x/LivepeerConfig"},{"title":"Player","href":"/v1/sdks/react/migration/3.x/Player"},{"title":"Broadcast","href":"/v1/sdks/react/migration/3.x/Broadcast"},{"group":"Asset","pages":[{"title":"useCreateAsset","href":"/v1/sdks/react/migration/3.x/asset/useCreateAsset"},{"title":"useAsset","href":"/v1/sdks/react/migration/3.x/asset/useAsset"},{"title":"useUpdateAsset","href":"/v1/sdks/react/migration/3.x/asset/useUpdateAsset"},{"title":"useAssetMetrics","href":"/v1/sdks/react/migration/3.x/asset/useAssetMetrics"}]},{"group":"Stream","pages":[{"title":"useCreateStream","href":"/v1/sdks/react/migration/3.x/stream/useCreateStream"},{"title":"useStream","href":"/v1/sdks/react/migration/3.x/stream/useStream"},{"title":"useUpdateStream","href":"/v1/sdks/react/migration/3.x/stream/useUpdateStream"},{"title":"useStreamSession","href":"/v1/sdks/react/migration/3.x/stream/useStreamSession"},{"title":"useStreamSessions","href":"/v1/sdks/react/migration/3.x/stream/useStreamSessions"}]},{"group":"Playback","pages":[{"title":"usePlaybackInfo","href":"/v1/sdks/react/migration/3.x/playback/usePlaybackInfo"}]},{"group":"Constants","pages":[{"title":"Application Binary Interface","href":"/v1/sdks/react/migration/3.x/constants/abis"},{"title":"Contract Addresses","href":"/v1/sdks/react/migration/3.x/constants/contract-addresses"}]}]}]}]}]},{"anchor":"AI Video (Beta)","icon":{"style":"regular","name":"microchip-ai"},"pages":[{"title":"AI Video (Beta)","href":"/v1/ai/introduction"}]},{"anchor":" ","icon":"horizontal-rule"},{"anchor":"Livepeer Studio ➚","icon":"clapperboard-play","href":"https://livepeer.studio"},{"anchor":"What's New ➚","icon":"rocket","href":"https://livepeer.canny.io/changelog"},{"anchor":"Community ➚","icon":{"style":"brands","name":"discord"},"href":"https://discord.gg/livepeer"}]}]}]},{"version":"v2","default":false,"pages":[{"title":"v2","href":"/v2/home/mission-control"}]}]},"basePath":"","title":"useBroadcastContext - Livepeer Docs","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":["6d89261695"],"chunks":["preview-widget-OgaTV5RT.js"]}