Responsive Video Source Selection

Fix for responsive video source selection failing in Chrome and Firefox when using <source media="..."> inside <video>. Use when: (1) building a video player that needs different sources for mobile vs desktop (portrait vs landscape), (2) <source media> attribute is ignored and wrong video loads, (3) need cross-browser responsive video without HLS/DASH streaming. Covers the matchMedia JS workaround pattern for React components with poster frame selection.

hubeiqiao Updated 0 repo stars

File contents

hubeiqiao/skills commit e0b62f5a60

Frequently asked questions

npx get-skill add hubeiqiao/responsive-video-source-selection