Media patterns for modern web apps
Building rich audio and video experiences on the web now has a dedicated set of reference patterns. A new collection from the Chrome team covers five common media tasks, from capturing user input to controlling playback outside the page. The patterns are designed to be practical starting points for adding production-grade media features without guessing at the right APIs.
The five areas addressed are:
- Audio effects — using the Web Audio API to process and shape audio sources.
- Media Session — exposing playback controls on lock screens, widgets, and hardware keys.
- Microphone recording — capturing audio input from the user’s device.
- Picture-in-Picture — building a custom button for video PiP mode.
- Screen recording — capturing the user's screen as a media stream.
The team is inviting feedback on the patterns, either by tweeting at @ChromiumDev or through the issue tracker.



