Audio Player
Play audio files in place, with a scrubber, volume, and an honest elapsed time.
What it adds
A compact inline audio player attached to every audio file the app already stores or links to.
What your agent is told to do
5
What your agent is told to do
5-
1
Build one player component and use it everywhere audio appears. If the app already has Adaptive Media Source Component or a video player, extend that shared media layer rather than standing up a second, differently-behaved control.
-
2
Cover the controls people expect: play and pause, a draggable scrub bar with elapsed and total time, volume with a mute toggle, and a playback speed control if the audio is spoken word.
-
3
Make the whole player keyboard operable. Space toggles playback, arrow keys seek and change volume, and every control has a real accessible name rather than an unlabelled icon.
-
4
Serve the audio through the app's existing file access rules. A player embedded on a private record must not expose a media URL that plays for anyone who has the link.
-
5
Do not let two players sound at once. When one starts, pause every other player on the page rather than letting the user hunt for whichever one is still talking.
Edge cases it handles
8
Edge cases it handles
8- A visitor who starts a track and then navigates within the app expects it to keep playing. Either hoist the player above the routed view so it survives navigation, or decide deliberately that it stops and make that stop clean rather than abrupt.
- Buffering and paused look identical if you only toggle a play icon. Show a distinct loading state on the transport so a stalled network does not read as a broken player.
- Some files never report a duration, either because the server does not send a length or because the stream is open-ended. Show elapsed time and a working scrubber that degrades to an unknown-length state instead of rendering a total of zero.
- On mobile the player should register its metadata with the operating system so the lock screen and hardware media keys show the title and control playback, rather than leaving the user with a silent, unlabelled notification.
- Browsers block autoplay with sound. A player that starts muted to dodge the block and then unmutes itself is worse than one that waits for a tap.
- Seeking before the file has buffered that far must not reset playback to the start or throw the player into a permanent loading state.
- A file that fails to load, is the wrong type, or has been deleted must show an error with the filename and a download link, not an inert transport with a dead play button.
- The scrub bar needs a hit area large enough for a thumb, and dragging it must not select the surrounding page text.
Definition of done
9
Definition of done
9- Every audio file in the app plays through the same player component.
- Play, pause, seek, and volume are all reachable by keyboard and correctly labelled for screen readers.
- Starting one player pauses any other player on the page.
- Buffering is visually distinct from paused, and files with no duration metadata still play and seek.
- Media keys and lock-screen metadata work on mobile.
- Audio attached to private records is not playable without the same permission the record requires.
- A missing or unplayable file shows an error state with a fallback download.
- The feature matches the existing design system.
- No existing functionality is broken.
Related features
Hover Video Preview
Hover Video Preview
Hovering a video card plays a short silent clip so people see what it is before clicking.
What it does
A silent, short-loop preview that plays inside a video card on deliberate hover and returns to the poster on exit.
How it works
- 1 Generate a short, low-resolution, silent preview clip during video processing and store it alongside the poster frame. Do not play the full source file behind the card.
- 2 Require a deliberate hover before doing anything. Wait several hundred milliseconds after the pointer settles, then load, so a cursor crossing a grid does not fire a dozen requests.
- 3 Give touch devices an explicit preview control on the card, since hover does not exist there. A long-press or a small preview button is fine; silently doing nothing on mobile is not.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/hover-video-preview
Audio Waveform Scrubber
Audio Waveform Scrubber
Show the shape of a track so listeners can see the quiet and loud parts and click to them.
What it does
A waveform rendered from precomputed amplitude data, doubling as the seek control on the audio player.
How it works
- 1 Compute the amplitude data on the server when the file is first stored, and serve it as a small dataset the page can draw. Do not decode the audio in the browser to build the waveform.
- 2 Replace the plain scrub bar in the app's existing Audio Player with this surface rather than adding a second seek control beside it.
- 3 Draw played and unplayed regions distinctly, and keep the playhead position exact under click, drag, and keyboard seeking on the same surface.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/audio-waveform-scrubber
Video Upload and Encoding
Video Upload and Encoding
Accept a video file and turn it into versions that play in a browser.
What it does
An upload path for video files plus a background pipeline that produces web-playable renditions and a poster frame.
How it works
- 1 Extend the app's existing File Upload rather than adding a second uploader. Video differs in size and in the processing that follows, not in how a user picks a file, and two uploaders means two sets of limits to keep in sync.
- 2 Upload in resumable chunks straight to storage, and enforce size, duration, and type limits on the server. Client-side limits are a convenience, not a control.
- 3 Do the encoding in the app's existing background job system so the user is not holding a tab open, and surface its state through the app's existing Background Job Progress rather than a bespoke poller.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/video-upload-and-encoding
How it works
-
1
Copy the link
Grab the Markdown instruction URL for this feature.
-
2
Give it to your AI
Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.
-
3
It inspects, then implements
Your agent reads your existing app first, then adds the feature to fit it.
Works with your stack
These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.
Need it tighter than that? Customize the feature and tell it exactly what you're running.