fix: revert preset provider (#631)

This commit is contained in:
Wesley Luyten
2026-02-26 17:12:37 -06:00
committed by GitHub
parent 0666d526b1
commit 5f1cafaa25
4 changed files with 6 additions and 22 deletions
@@ -1,10 +1,3 @@
import { createPlayer, features } from '../..';
const { Provider: AudioProvider } = createPlayer({
features: features.audio,
});
export { AudioProvider };
export { Audio, type AudioProps } from '@/media/audio';
export * from './minimal-skin';
export * from './skin';
@@ -1,9 +1,2 @@
import { createPlayer, features } from '../..';
const { Provider: BackgroundVideoProvider } = createPlayer({
features: features.background,
});
export { BackgroundVideoProvider };
export { BackgroundVideo, type BackgroundVideoProps } from '@/media/background-video';
export * from './skin';
@@ -1,10 +1,3 @@
import { createPlayer, features } from '../..';
const { Provider: VideoProvider } = createPlayer({
features: features.video,
});
export { VideoProvider };
export { Video, type VideoProps } from '@/media/video';
export * from './minimal-skin';
export * from './minimal-skin.tailwind';
@@ -1,7 +1,12 @@
import '@videojs/react/background/skin.css';
import { BackgroundVideo, BackgroundVideoProvider, BackgroundVideoSkin } from '@videojs/react/background';
import { createPlayer, features } from '@videojs/react';
import { BackgroundVideo, BackgroundVideoSkin } from '@videojs/react/background';
import { createRoot } from 'react-dom/client';
const { Provider: BackgroundVideoProvider } = createPlayer({
features: features.background,
});
export function App() {
return (
<BackgroundVideoProvider>