mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
22 lines
637 B
TypeScript
22 lines
637 B
TypeScript
// HTML sandbox — Background video player
|
|
// http://localhost:5173/html-background/
|
|
|
|
import '@videojs/html/background/skin.css';
|
|
import '@videojs/html/background/player';
|
|
import '@videojs/html/background/skin';
|
|
import '@videojs/html/background/video';
|
|
|
|
const html = String.raw;
|
|
|
|
const root = document.getElementById('root');
|
|
|
|
if (root) {
|
|
root.innerHTML = html`
|
|
<background-video-player>
|
|
<background-video-skin>
|
|
<background-video slot="media" src="https://stream.mux.com/Sc89iWAyNkhJ3P1rQ02nrEdCFTnfT01CZ2KmaEcxXfB008/low.mp4"></background-video>
|
|
</background-video-skin>
|
|
</background-video-player>
|
|
`;
|
|
}
|