Skip to content

Instantly share code, notes, and snippets.

@adamsoffer
Created February 28, 2023 21:00
Show Gist options
  • Save adamsoffer/fd46fe7f32332ed82d8f428c3fda1fd7 to your computer and use it in GitHub Desktop.
Save adamsoffer/fd46fe7f32332ed82d8f428c3fda1fd7 to your computer and use it in GitHub Desktop.
player gist
import {
Player,
LivepeerConfig,
createReactClient,
studioProvider,
} from "@livepeer/react";
const client = createReactClient({
provider: studioProvider({ apiKey: "e2475873-a877-4c48-97bb-738677a94b89" }),
});
const DemoPlayer = () => {
return (
<LivepeerConfig client={client}>
<Player
src="ar://eowSrgs3tZPK7bA1QPrdVFhodkepSJrIqYfzGbMaP7Q"
autoUrlUpload={{
fallback: true,
arweaveGateway: "https://arweave.net",
}}
/>
</LivepeerConfig>
);
};
export default DemoPlayer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment