mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
23 lines
567 B
TypeScript
23 lines
567 B
TypeScript
// React sandbox — React player
|
|
// http://localhost:5173/react/
|
|
|
|
import { Container, createPlayer, features } from '@videojs/react';
|
|
import { Video } from '@videojs/react/video';
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
const { Provider } = createPlayer({
|
|
features: features.video,
|
|
});
|
|
|
|
function App() {
|
|
return (
|
|
<Provider>
|
|
<Container>
|
|
<Video src="https://stream.mux.com/lhnU49l1VGi3zrTAZhDm9LUUxSjpaPW9BL4jY25Kwo4/highest.mp4" />
|
|
</Container>
|
|
</Provider>
|
|
);
|
|
}
|
|
|
|
createRoot(document.getElementById('root')!).render(<App />);
|