What the recorder does
The recorder lets your customers' users record the screen, the camera or both (or pick a file) on your site and send it to your account. It uploads while they record, so processing starts the moment they stop, then offers a review step with Upload or Retake. The recording becomes an ordinary video, so everything else in the API applies to it, including captions and trimming.
It is a custom element with its own shadow styles, about 8.5 KB gzipped, that fills its container's width. In screen + camera mode it shows a layout picker, covering the camera's corner and size or side by side, and the live preview matches how the worker will compose the video. See the screen recording API for what happens after upload.
The token model
Your API key must never reach a browser. Instead, your server makes a short-lived upload token that can upload one video and nothing else:
// 1. Your server (Node.js): an endpoint that makes a token
app.post("/api/upload-token", async (req, res) => { // check the user is signed in, as you need
const r = await fetch(`${API}/upload-tokens`, { method: "POST",
headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ expiresIn: 300, maxSeconds: 600, metadata: { userId: String(req.user.id) } }) });
res.status(r.status).json(await r.json()); // { uploadToken: "vpu_…", … }
});
<!-- 2. Your page: the recorder asks token-url for a fresh token when someone starts -->
<script src="https://videopiper.com/recorder/recorder.js"></script>
<video-piper-recorder token-url="/api/upload-token" max-seconds="600"></video-piper-recorder>
<script>
document.querySelector("video-piper-recorder")
.addEventListener("vp-uploaded", (e) => console.log("uploaded", e.detail.videoId));
</script>
These are the documentation's examples, which also include an ASP.NET Core version of the endpoint. Token settings are all optional and fixed by your server, so the browser can't change them: expiresIn (60 to 86400 seconds), maxSeconds (the video is trimmed to this length), maxBytes, maxHeight, captions and metadata.
- One video per token. Aborting an unfinished upload, as a retake does, frees it for another try.
- Shown once. Only a hash is kept, and the token expires on its own.
expiresInis the time to start; once an upload begins, its token keeps working for that upload for 24 hours. - Counts like any upload. It shares your key's rate limits and your plan, and a 10-minute screen + camera recording takes roughly 20 API requests.
No page of your own? Send a recording link
When the person recording isn't on your site at all (a customer sending a testimonial, a candidate answering a question, a colleague without an account), make a recording link instead of a page. Your server, or Request a recording in the app, calls POST /recording-links with a title, a message, the modes to offer and the same limits as an upload token, and gets back a URL to send any way you like. The page it opens shows your title and message, asks for the person's name and email if you chose to, records with this same component, and thanks them. The video lands in your account with their name and email in its metadata.
POST /recording-links
{ "title": "Record a short intro", "message": "Two minutes about yourself.",
"modes": ["screen+camera", "camera"], "maxRecordings": 1, "expiresIn": 604800, "maxSeconds": 120 }
→ 201 { "recordingLinkId": "r-…", "url": "https://videopiper.com/record/vpr_…", "status": "active", … }
- One recording per link by default, or several (a number, or no limit). Links last up to 30 days, and
DELETE /recording-links/{id}stops one at once. - Nothing of yours on the page. The link mints its own one-video upload token when the person starts; your API key never leaves your server.
- Processed your way. Captions, auto-redaction, maximum length and quality are set on the link, so recordings arrive finished and tagged with
recordingLink,guestNameandguestEmailfor your webhook and listings.
Attributes and events
| Attribute | What it does |
|---|---|
token-url or upload-token | Your endpoint for a fresh token when someone starts (recommended), or a token you made when the page loaded. |
modes | Any of screen+camera, screen, camera, file; modes the browser can't do are hidden. |
layout, layouts | The starting layout for screen + camera (pip or side-by-side) and which layouts people may choose, or none to hide the picker. |
max-seconds, review, wait | Stop recording at this length; upload immediately instead of reviewing; keep checking until processed, then fire vp-ready. |
Events are vp-state, vp-progress, vp-uploaded, vp-ready, vp-error (with a message fit to show) and vp-layout-change. Theme it with the custom properties --vp-accent, --vp-panel, --vp-line and --vp-text.
Prefer to see it first? Your account page has the snippets filled in with your addresses, and a Try the recorder button that makes a 15-minute token so the video lands in your list.
Which plans include the recorder
Recording the screen, camera or both, with upload while recording, needs Pro or Scale. Picking a file to upload works in the component on every plan.
| Plan | Price | Processing minutes | Max quality | Recording |
|---|---|---|---|---|
| Starter | $9.99/mo | 100 | 1080p | Not included |
| Growth | $49/mo | 400 | 1080p | Not included |
| Pro | $199/mo | 1,500 | 4K | Included |
| Scale | $699/mo | 6,000 | 4K | Included |
New accounts get a 7-day free trial of any plan. After the trial, usage beyond a plan is billed at $0.09 per processing minute, $0.15 per GB-month of storage and $0.10 per GB of delivery. Full details are on the pricing page.
In the documentation
- The video-piper-recorder web component
- Upload tokens
- Recording links
- Screen + camera layouts
- Uploading while recording
- Webhooks
Frequently asked questions
How does the recorder avoid exposing my API key?
Your server calls POST /upload-tokens with the key and passes the page a token that can upload exactly one video. With it the browser can create that upload, send its parts, complete or abort it and read its status. Anything else answers 403 UPLOAD_TOKEN_SCOPE, and a second video answers 409 UPLOAD_TOKEN_USED.
What can people record?
Screen plus camera, screen only, camera only, or they can pick a file. Set the modes attribute to limit the choices. Screen recording works in desktop Chrome, Edge, Firefox and Safari, and the browser asks for permission. Someone who isn't on your site can record the same way through a recording link you send them (POST /recording-links, or Request a recording in the app).
Can I control how screen and camera are combined?
Yes. In screen + camera mode people can choose the camera's corner and size or side by side, with a live preview that matches the final video. Set layout for the default, and layouts to restrict the choice or hide it.
How does my server know a recording is ready?
The page gets vp-uploaded and, with the wait attribute, vp-ready events. Your server also gets the usual video.ready webhook, carrying the metadata you put on the token, such as your user's ID.
Which plans include the recorder?
Recording needs Pro or Scale. Picking a file works on every plan.