-
pnpm create vite
(name the project stream, use react) - cd to your project
pnpm install
pnpm add @cloudflare/stream-react
- Change app.tsx to
import { Stream } from "@cloudflare/stream-react";
import "./App.css";
function App() {
const videoId = "VIDEO_ID" // I replace this with a videoID in my account
return (
<div className="App">
<Stream controls src={videoId} />
</div>
);
}
export default App;
When I run this I can’t get anything to happen. No errors, no rendering of player, no nothing. I do see a console message [Debug] EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. (sdk-iframe-integration.fla9.latest.js, line 2)
Is the problem in my video ID? I’m copying it right out of my dashboard, and I do not require signed URLs.