fix(spf): implement preload IDL attribute on SpfMedia (#1069)

This commit is contained in:
Christian Pillsbury
2026-03-23 07:30:20 -07:00
committed by GitHub
parent 184da9dcc3
commit 04f81a26e1
6 changed files with 92 additions and 11 deletions
@@ -6,8 +6,6 @@ import { attachMediaElement } from '../../utils/attach-media-element';
import { mediaProps } from '../../utils/media-props';
import { useComposedRefs } from '../../utils/use-composed-refs';
// TODO: mediaProps uses media.preload which SimpleHlsMedia does not yet expose.
// Add preload getter/setter to SimpleHlsMedia as a follow-up.
export type SimpleHlsVideoProps = PropsWithChildren<VideoHTMLAttributes<HTMLVideoElement>>;
export const SimpleHlsVideo = forwardRef<HTMLVideoElement, SimpleHlsVideoProps>(({ children, ...props }, ref) => {