Guides / Screen and voice reports
How to let users record their screen and voice in a bug report
To let users record their screen and a voice note when they report a bug, add Tellfix's widget to your web app. Users choose Record and use your app for up to 60 seconds while they talk, and you get a replay of what they did with their voice. Screenshot reports take a voice note of up to two minutes.
Below are the two ways a browser can record a screen, how Tellfix does it, and what stays private.
Two ways to record a screen in the browser
A web page can record a user's screen in two ways. The first is the Screen Capture API: getDisplayMedia() asks the user to share a screen, window or tab, and MediaRecorder turns it into a video file. The microphone comes from getUserMedia():
const screen = await navigator.mediaDevices.getDisplayMedia({ video: true })
const mic = await navigator.mediaDevices.getUserMedia({ audio: true })
const stream = new MediaStream([...screen.getVideoTracks(), ...mic.getAudioTracks()])
const chunks = []
const recorder = new MediaRecorder(stream)
recorder.ondataavailable = (event) => chunks.push(event.data)
recorder.onstop = () => {
const video = new Blob(chunks, { type: recorder.mimeType })
// Upload the video with the user's report.
}
recorder.start()It records real pixels, but the user has to pick what to share every time, the video can show other windows and notifications, and the files are large. You also build the upload, the storage and the player.
The second is session replay. A script records the page's structure and every change to it, and a player rebuilds the page from that log. There is no sharing prompt, it records only your page, and it can mask form values before anything leaves the browser. By default, canvas drawings and embedded pages from other sites don't come through.
How Tellfix records the screen
Tellfix records the screen with session replay, built on rrweb. It records your app's page, not the user's desktop or other tabs. Here is what the user does:
- Clicks the feedback button and chooses Record. Recording starts at once, with no screen-sharing prompt. The browser asks for the microphone.
- Uses your app to show the bug, talking as they go. A bar shows the time and a Stop button. They can draw on the page to point at something, and the marks show in the replay.
- Clicks Stop, or the recording stops itself at 60 seconds. The widget takes a screenshot of the page as it was.
- Adds a few typed words if they like, and sends it.
Browsers that can't record hide the Record option, and the user can still send a screenshot.
How Tellfix records the voice
Voice in a Tellfix report comes from the microphone, with the user's permission. When a recording starts, the browser asks for the microphone. If the user says no, the recording carries on without voice. The Voice button on the bar mutes and unmutes the voice at any time, and the voice stays in time with the replay.
With a screenshot instead of a recording, the user can speak a voice note of up to two minutes rather than type. Tellfix turns the voice note, or the voice in a recording, into text with Groq, so the words show up in the report. A self-hosted Tellfix can use Groq or OpenAI.
What you get from a recorded report
A recorded Tellfix report plays back in the dashboard as a session replay, with the user's voice in sync. The report also has the screenshot from the end of the recording, the page, the browser, and for bug reports the console errors.
When Tellfix files the report in GitHub, Azure DevOps or Slack, the ticket carries the screenshot and the voice note and links back to the report in Tellfix, where the replay plays. Coding agents reading it with tellfix issue view get stills from the recording.
What a recording keeps private
A Tellfix recording masks every value typed into inputs, text areas and drop-downs in the browser before it is sent. You can't turn this off. Other text on the page is recorded. To keep more out, add a class to the element:
rr-blockleaves the element out of the recording, shown as an empty box.rr-maskmasks its text.rr-ignoreignores what is typed into it.
<div class="rr-block">Card on file: Visa ending 4242</div>The screenshot at the end of a recording shows the page as it was, typed values included. Installed as a library, the widget can mask screenshots too.
Start a recording from your own button
A recording can start from your own button, skipping the chooser. Give any element data-tellfix="record", or call window.Tellfix.start("record") from your code:
<button data-tellfix="record">Record a bug</button>Record without the microphone
When you install Tellfix as a library, recordings can skip the microphone so the browser never asks for it. Set recording: { audio: false }:
import { tellfixTransport } from "@ganeshdole/tellfix-core"
import { mount } from "@ganeshdole/tellfix-widget"
mount({
transport: tellfixTransport({
endpoint: "https://app.tellfix.app/ingest",
projectKey: "pk_your_project_key",
}),
recording: { audio: false },
})In React, the same option is a prop on TellfixProvider. The React install guide shows the setup.
Try it before you install it
This page runs the real widget. Report something on it and it lands in our inbox, the way your users’ reports will land in yours.