Popup Video
Activity to insert videos (YouTube/Vimeo) with display modes: modal popup, embedded iframe, or expandable toggle.
General Description
Popup Video allows incorporating audiovisual content without relying on blocks or HTML hacks, with UX options for different course methodologies.
Implemented Best Practices
-
Embed Security
- URL sanitization and provider whitelist.
- Use of secure parameters and autoplay restrictions according to policy.
- Configuration of
referrerpolicyand iframe attributes when applicable.
-
Performance
- Lazy loading: the iframe is created when opening popup or expanding toggle.
- Avoids loading dozens of iframes when rendering a page with many resources.
-
Accessibility
- Focus control when opening/closing modal.
- Keyboard navigation and ARIA labels for components.
Main Features
- Modal Popup
- Ideal for clean course pages: video loads only when user requests it.
- Embedded Iframe
- For always-visible content.
- Expandable Toggle
- For long lessons where video is optional.