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
@@ -21,5 +21,9 @@ export class SimpleHlsVideo extends MediaAttachMixin(SimpleHlsCustomMedia) {
if (attrName === 'src' && oldValue !== newValue) {
this.src = newValue ?? '';
}
if (attrName === 'preload' && oldValue !== newValue) {
this.preload = (newValue ?? '') as '' | 'none' | 'metadata' | 'auto';
}
}
}