mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
19 lines
665 B
TypeScript
19 lines
665 B
TypeScript
import { createPlayer } from '@videojs/react';
|
|
import { audioFeatures } from '@videojs/react/audio';
|
|
import { backgroundFeatures } from '@videojs/react/background';
|
|
import { videoFeatures } from '@videojs/react/video';
|
|
|
|
// The `live-video` preset currently shares `videoFeatures`, so the same provider
|
|
// works for both live and VOD playback — only the skin swaps on the source.
|
|
export const { Provider: VideoProvider } = createPlayer({
|
|
features: videoFeatures,
|
|
});
|
|
|
|
export const { Provider: AudioProvider } = createPlayer({
|
|
features: audioFeatures,
|
|
});
|
|
|
|
export const { Provider: BackgroundVideoProvider } = createPlayer({
|
|
features: backgroundFeatures,
|
|
});
|