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 e0b62f5 5.9 KB Updated

File contents

hubeiqiao/skills/tree/main/responsive-video-source-selection commit e0b62f5a60

Frequently asked questions

npx skillmds@latest add hubeiqiao/responsive-video-source-selection