mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 13:48:14 +00:00
26 lines
892 B
TypeScript
26 lines
892 B
TypeScript
import '@app/styles.css';
|
|
import '@videojs/react/video/skin.css';
|
|
import '@videojs/react/video/minimal-skin.css';
|
|
import { VideoProvider } from '@app/shared/react/providers';
|
|
import { VideoSkinComponent } from '@app/shared/react/skins';
|
|
import { useSkin } from '@app/shared/react/use-skin';
|
|
import { useSource } from '@app/shared/react/use-source';
|
|
import { SOURCES } from '@app/shared/sources';
|
|
import { DashVideo } from '@videojs/react/media/dash-video';
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
function App() {
|
|
const skin = useSkin();
|
|
const source = useSource();
|
|
|
|
return (
|
|
<VideoProvider>
|
|
<VideoSkinComponent skin={skin} styling="css" className="w-full aspect-video max-w-4xl mx-auto">
|
|
<DashVideo src={SOURCES[source].url} playsInline />
|
|
</VideoSkinComponent>
|
|
</VideoProvider>
|
|
);
|
|
}
|
|
|
|
createRoot(document.getElementById('root')!).render(<App />);
|