The embed code
Open a video, choose Share, then Embed. Pick a size, a start time and a frame colour, and copy the code. It is a plain iframe: nothing to install, and it works anywhere HTML does.
Fits the page keeps the video's shape at any width:
<div style="position:relative;padding-top:56.25%">
<iframe src="https://record.so/embed/VIDEO_ID" title="My video"
frameborder="0" loading="lazy"
allow="autoplay; fullscreen; picture-in-picture; clipboard-write" allowfullscreen
style="position:absolute;top:0;left:0;width:100%;height:100%"></iframe>
</div>Fixed is a set size:
<iframe src="https://record.so/embed/VIDEO_ID" title="My video"
width="640" height="360" frameborder="0" loading="lazy"
allow="autoplay; fullscreen; picture-in-picture; clipboard-write"
allowfullscreen></iframe>loading="lazy" lets the browser load the player only when it comes near the screen, which keeps your page fast. Who can watch still applies: a private or password protected video stays that way inside an embed.
Player settings
Set how videos play once, in your workspace settings under Sharing, then Player. A video can change any of them in its own settings. An embed code can override them for one page with the parameters below, added to the address in src, for example /embed/VIDEO_ID?autoplay=1&loop=1.
| Parameter | Values | What it does |
|---|---|---|
t | 90 or 1m30s | Where playback starts. |
autoplay | 1 or 0 | Start on its own. Always muted, browsers allow nothing else. |
loop | 1 or 0 | Start again at the end. |
controls | 1 or 0 | The control bar. |
title | 1 or 0 | The title over the player. |
captions | 1 or 0 | Captions on from the start, when the video has them. |
speed | 1 or 0 | The speed menu. |
theme | dark or light | The frame around the video. |
comments | 0 | Hide comments, even when the video allows them. |
reactions | 0 | Hide reactions, even when the video allows them. |
The order is: the parameter in the embed code, then the video, then the workspace.
Where it was watched
A video's Viewers tab shows impressions (the player was on screen), plays and play rate. On Pro it also lists the pages and sources the plays came from.
The page comes from what your site tells the browser to share. Most sites share only their address, like example.com, so pages show up by site. To see full paths and the utm_ tags of your campaigns, your page needs a referrer policy that sends the full address to the player, for example <meta name="referrer" content="no-referrer-when-downgrade">. Weigh that against your own privacy policy.
Events for your page
The player speaks player.js, the same messages Medium and Notion use to control a video. Your page can play, pause, seek and listen for these events:
| Event | When |
|---|---|
ready | The player can be controlled. |
play | Playback started or resumed. |
pause | Playback paused. |
ended | The video reached its end. |
timeupdate | The position moved. Value: seconds and duration. |
progress | More of the video loaded. Value: percent buffered. |
seeked | The viewer jumped. Value: seconds. |
error | Something went wrong. |
cta | A viewer clicked a player link or a call to action. Value: the address. |
lead | A viewer sent an email form. The address stays with you in record.so. |
Google Tag Manager
Add a Custom HTML tag that fires on all pages with the code below. It pushes recordso_play, recordso_progress (with percent at 25, 50 and 75), recordso_complete, and for conversions recordso_cta (with url) and recordso_lead to the data layer, ready for a GA4 event tag. On Pro.
<script>
(function () {
var events = ['play', 'ended', 'timeupdate', 'cta', 'lead'], sent = {};
function listen(win, origin) {
events.forEach(function (ev) {
win.postMessage(JSON.stringify({ context: 'player.js', version: '0.0.11',
method: 'addEventListener', value: ev, listener: 'gtm-' + ev }), origin);
});
}
window.addEventListener('message', function (e) {
if (!/^https:\/\/(www\.)?record\.so$/.test(e.origin)) return;
var d; try { d = typeof e.data === 'string' ? JSON.parse(e.data) : e.data; } catch (x) { return; }
if (!d || d.context !== 'player.js') return;
if (d.event === 'ready') listen(e.source, e.origin);
if (d.event === 'play') dataLayer.push({ event: 'recordso_play' });
if (d.event === 'ended') dataLayer.push({ event: 'recordso_complete' });
if (d.event === 'cta') dataLayer.push({ event: 'recordso_cta', url: d.value && d.value.url });
if (d.event === 'lead') dataLayer.push({ event: 'recordso_lead' });
if (d.event === 'timeupdate' && d.value && d.value.duration) {
var p = Math.floor((d.value.seconds / d.value.duration) * 4) * 25;
if (p > 0 && p < 100 && !sent[p]) { sent[p] = 1; dataLayer.push({ event: 'recordso_progress', percent: p }); }
}
});
// Players that were ready before this tag loaded.
document.querySelectorAll('iframe[src*="record.so/embed/"]').forEach(function (f) {
listen(f.contentWindow, new URL(f.src).origin);
});
})();
</script>Consent and cookies
The player uses no cookies. It keeps a few small items in the browser's storage for record.so, listed below. Browsers keep that storage separate for every site, so nothing follows a viewer from your site to another one.
If your site asks visitors for consent, turn on Measure without identifiers until the viewer consents in your workspace settings under Sharing, then Player. Every embed of the workspace then starts without storing or reading anything. Plays, impressions and watched time still count; who watched does not, until consent. For one embed only, add ?consent=required to its address.
The player never shows a banner of its own. Your banner stays the one place to decide, and it tells the player in one of three ways:
- Load the player after consent, with
?consent=granted. Consent tools block iframes until a visitor accepts. Cookiebot:
OneTrust (use the category your setup has for analytics):<iframe data-cookieblock-src="https://record.so/embed/VIDEO_ID?consent=granted" data-cookieconsent="statistics" title="My video" ...></iframe><iframe data-src="https://record.so/embed/VIDEO_ID?consent=granted" class="optanon-category-C0002" title="My video" ...></iframe> - Tell a player that is already there. One line in your banner's callback:
// In your cookie banner's "accepted" callback: document.querySelectorAll('iframe[src*="record.so/embed/"]').forEach(function (f) { f.contentWindow.postMessage({ context: 'recordso', consent: 'granted' }, 'https://record.so'); }); - The viewer types their email into an email form on the video. Giving an address by hand counts as consent for that player.
One viewer across your site
The random id lives in the player's storage, which browsers keep per site. On Pro, a viewer who gives their email on one page of your site is known on every other page and every video of the team, and an email form set to skip known viewers stops asking. It does not follow anyone to another site, and in consent mode it starts only after consent.
What the embed stores
| What | When | Why |
|---|---|---|
| A random id for this browser (recordso.deviceId) | After consent, or always when consent mode is off. Set on the first play. | Counts one viewer once, and knows a viewer who came back. |
| Which "show once" overlays were closed | After consent, when a viewer closes one. | So it does not show again. |
| A name typed for a comment | After consent, when a viewer types one. | So they do not type it twice. |
| The record.so sign-in, read only | After consent, and only for someone signed in to record.so. | Your own plays do not count, and comments carry your name. |
Before consent the player stores nothing. It sends each play with a random number that lives only in that page and is gone when the page closes. Those plays count in totals and the watch-through chart, never in the list of viewers, and their records are deleted after 30 days.
SEO snippet
Next to the embed code, SEO snippet gives you a short application/ld+json block that describes the video to search engines: title, description, thumbnail, length and the player address. Paste it on the same page as the embed. It is there for public videos without a password, and it never contains the video file.