Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Play VOD assets with the Livepeer Player or a custom HLS/MP4 player.
import * as Player from "@livepeer/react/player"; import { getSrc } from "@livepeer/react/external"; export async function getPlaybackSource(playbackId) { const playbackInfo = await livepeer.playback.get(playbackId); return getSrc(playbackInfo.playbackInfo); } export function AssetPlayer({ src }) { return ( <Player.Root src={src}> <Player.Container> <Player.Video /> <Player.Controls><Player.PlayPauseTrigger /></Player.Controls> </Player.Container> </Player.Root> ); }
<iframe src="https://lvpr.tv?v=PLAYBACK_ID" allowfullscreen allow="autoplay" frameborder="0"></iframe>
&muted=false
&autoplay=false
&loop=true
Was this page helpful?