mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(spf): implement preload IDL attribute on SpfMedia (#1069)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user