Media Session Playground - Interactive Web API Lab | IconVault
Master the Media Session API: build metadata, set playback state and wire action handlers that respond to real media keys. Free, in your browser.
Media Session Playground
Metadata builder, playback state and real media key handlers
playbackState
Action handlers
5 of 5 free publishes left.
Now-playing card (what your OS sees)
Neon Horizons
IconVault Studio - Web Audio Demos
playbackState: none
Action handler log
Publish metadata, play the test tone, then press your keyboard media keys or lock-screen controls to see the handlers fire.
About this tool
IconVault's Media Session Playground drives the real `navigator.mediaSession` API: build metadata (title, artist, album, artwork), flip the playback state between playing and paused, and register action handlers for play, pause, next track and previous track that respond to your keyboard's actual media keys, headset buttons and OS media controls. It is free and runs fully in your browser.
You will learn why every audio and video app should set media metadata: it powers the lock-screen player, notification controls and picture-in-picture overlays on phones and desktops. The lab shows which artwork sizes each platform prefers, how `setPositionState()` keeps scrubbers in sync, and the graceful pattern for handlers the browser does not support: check first, register only what exists.
Frequently asked questions
Popular searches
More tools
Algorithm Visualizer
Watch sorting and searching animate step by step
Alt Text Helper
Write better image alt text with live feedback
ARIA Reference
Searchable ARIA roles and attributes guide
Array Visualizer
Step through map, filter, reduce like a debugger
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon