Screen recording API
Add screen recording to your web app.
Drop in one component and the people using your app can record their screen or camera. The video uploads while they record, and you get a link and an id straight away.
Four ways to record
- In your app<fileboy-recorder>
- In React<FileboyRecorder>
- In the dashboardThe Record button
- From any tabFileboy for Chrome
Add it in a few lines
Load the script and put the element where the recorder should be, or use the React wrapper from @cd2/fileboy-react. Add your page's origin to your app's allowed origins, as for any upload with the public key.
Not sure how to start? Follow the screen recording guide or read the recorder docs.
<script type="module" src="https://cdn.jsdelivr.net/npm/@cd2/fileboy-recorder@0.5/dist/fileboy-recorder.js"></script>
<fileboy-recorder
public-key="YOUR_PUBLIC_KEY"
mode="screen"
max-duration="300"
></fileboy-recorder>
<script>
const recorder = document.querySelector("fileboy-recorder")
recorder.addEventListener("fileboy:link", e => {
console.log(e.detail) // { videoId, watchUrl, embedUrl }, when recording starts
})
recorder.addEventListener("fileboy:recorded", e => {
console.log(e.detail) // { videoId, fileId, watchUrl, embedUrl }
})
</script>What the recorder does for you
A link the moment they start
The recorder uploads while people record, so the video's id and link exist from the first second and stopping only sends the last few seconds. A dropped connection catches up.
Screen, window, tab or camera
People choose what to record, with the microphone and a tab's sound. A camera bubble can sit over the screen, and you pick the modes you offer with one attribute.
Drawing and click highlights
A pen and highlighter on the recorder's preview and ripples where people click, all recorded into the video. Click highlights need Chrome or Edge and a share of the recorder's own tab.
Everything a recorder needs
A countdown, pause and resume, restart, cancel, a time limit, microphone and camera pickers with a level meter, and help for each browser's permission prompts.
Recovers from a crash
Each recording is kept in the browser until Fileboy has it. If a tab closes or the browser crashes, the person is offered the recording again and the same link carries on. Browsers that block IndexedDB, such as some private windows, keep nothing.
An ordinary Fileboy video
A recording is encoded and streamed like any video: the player, captions, privacy settings, analytics and webhooks all work. It usually plays a few seconds after the person stops, while the other qualities are made. See video hosting
Uploads like the uploaders
It uses your public key, your allowed origins and your plan limits, so there is nothing new to set up. Recordings go ahead of bulk uploads in the processing queue.
Small and standalone
One web component with no dependencies, about 28 KB gzipped. It works in plain HTML, React and anything else, and is safe to import during server rendering.
Record without writing code
People on your team can record into an app from the dashboard, or from any tab with the Chrome extension.
The dashboard's Record button
Open an app's Videos page and press Record, or Record a video when the app has no videos yet. It opens this recorder in a dialog, records into that app as you and opens the new video's page once it has uploaded. Viewers of the app see the button switched off.
Fileboy for Chrome
An extension for people with a Fileboy account. It records a tab, a window or the whole screen, with a camera bubble and the microphone, and the link is on the clipboard the moment you start. Get it from the Chrome Web Store, or see Record from Chrome.
Where it works
- Chrome and Edge on a computer: screen, window or tab, and a tab's sound.
- Firefox and Safari on a computer: screen or window, with the microphone.
- Phones and tablets: the camera only. Mobile browsers don't let a page capture the screen.
Good to know
- Recordings are WebM in Chrome, Edge and Firefox and MP4 in Safari. Older Safari and some iOS versions don't play WebM, so those viewers wait for the other qualities.
- Recordings count towards your plan like any video. See pricing.
Guide
A worked example with code you can paste.
Add screen recording free
Create an app, paste your public key into the recorder and your users can record. The free plan needs no card.