mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
docs: initial concepts and recipes (#147)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { MediaContainer, MediaProvider, Video } from '@videojs/react';
|
||||
import { VJS8_DEMO_VIDEO } from '@/consts';
|
||||
import { BasicTimeSlider } from './BasicTimeSlider';
|
||||
|
||||
/**
|
||||
@@ -11,8 +12,8 @@ export function TimeSliderDemo() {
|
||||
<MediaProvider>
|
||||
<MediaContainer style={{ position: 'relative' }}>
|
||||
<Video
|
||||
src="https://stream.mux.com/UZMwOY6MgmhFNXLbSFXAuPKlRPss5XNA.m3u8"
|
||||
poster="https://image.mux.com/UZMwOY6MgmhFNXLbSFXAuPKlRPss5XNA/thumbnail.webp"
|
||||
src={VJS8_DEMO_VIDEO.hls}
|
||||
poster={VJS8_DEMO_VIDEO.poster}
|
||||
muted
|
||||
/>
|
||||
<div style={{ position: 'absolute', bottom: '1rem', left: '1rem', right: '1rem', zIndex: 10 }}>
|
||||
|
||||
Reference in New Issue
Block a user