mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(example/react): improvements to react examples (#210)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { HlsVideo } from '@videojs/react';
|
||||
|
||||
export function VideoElement(): JSX.Element {
|
||||
return (
|
||||
<HlsVideo
|
||||
// @ts-expect-error -- types are incorrect
|
||||
src="https://stream.mux.com/fXNzVtmtWuyz00xnSrJg4OJH6PyNo6D02UzmgeKGkP5YQ.m3u8"
|
||||
poster="https://image.mux.com/fXNzVtmtWuyz00xnSrJg4OJH6PyNo6D02UzmgeKGkP5YQ/thumbnail.webp"
|
||||
playsInline
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user