Created
February 28, 2023 21:00
-
-
Save adamsoffer/fd46fe7f32332ed82d8f428c3fda1fd7 to your computer and use it in GitHub Desktop.
player gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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