feat(example/react): improvements to react examples (#210)

This commit is contained in:
Sam Potts
2025-12-10 09:27:38 +11:00
committed by GitHub
parent 546989c2be
commit c35b012250
57 changed files with 2886 additions and 2138 deletions
@@ -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
/>
);
}