mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +00:00
26 lines
746 B
TypeScript
26 lines
746 B
TypeScript
import { VJS10_DEMO_VIDEO } from '@/consts';
|
|
import { createPlayer } from '@videojs/react';
|
|
import { MinimalVideoSkin, Video, videoFeatures } from '@videojs/react/video';
|
|
import '@videojs/react/video/minimal-skin.css';
|
|
|
|
const Player = createPlayer({ features: videoFeatures });
|
|
|
|
/**
|
|
* Live demo of the minimal video skin design.
|
|
*
|
|
* Features demonstrated:
|
|
* - Clean, uncluttered interface
|
|
* - Inline time display
|
|
* - Simple, direct interactions
|
|
* - Lightweight and fast
|
|
*/
|
|
export function MinimalSkinDemo() {
|
|
return (
|
|
<Player.Provider>
|
|
<MinimalVideoSkin className="aspect-video" poster={VJS10_DEMO_VIDEO.poster}>
|
|
<Video src={VJS10_DEMO_VIDEO.mp4} playsInline />
|
|
</MinimalVideoSkin>
|
|
</Player.Provider>
|
|
);
|
|
}
|