Embed a video on your own site
Put a VideoBB video on your site with one iframe. Set a start time, autoplay, mute or loop, make it fit any screen, or use oEmbed.
To embed a video, open Share, then Embed, and copy the iframe code into your page. The embedded player keeps adaptive quality, carries a small VideoBB watermark, and follows the owner's settings.
Copy the embed code
- Open the video's watch page.
- Press the three-dot menu under the player and choose Embed. You can also press Share and then Embed.
- Tick the options you want: Start at the current time, Autoplay (muted) or Loop. The preview updates as you go.
- Copy the code and paste it into the HTML of your page.
The code looks like this:
<iframe src="https://videobb.com/embed/v7fs1pq" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen loading="lazy" title="Video title"></iframe>Embed options
| Add to the address | Effect |
|---|---|
| ?t=30 | Start at 30 seconds |
| ?autoplay=1 | Start playing on page load, muted, where the browser allows |
| ?muted=1 | Start muted |
| ?loop=1 | Play again from the start when it ends |
Join more than one option with &, for example ?t=30&loop=1. Browsers only allow autoplay when the sound is off, as our guide to autoplay rules in browsers explains.
Make the player fit any screen
Wrap the iframe in a box with a 16:9 shape so it scales with the page. The embed guide has code you can copy, and our guide to responsive video embeds explains the method.
Which videos can be embedded
- The Embed option appears for public videos that allow embedding.
- Owners can turn off Allow embedding for any video, or for all new videos in their upload defaults.
- If a video is private, still encoding or has embedding off, the embed shows a Video unavailable message.
oEmbed for publishing tools
VideoBB offers oEmbed at /api/oembed?url= followed by a watch link. Watch pages point to it, so publishing tools that support oEmbed can turn a pasted link into a player. It works for public videos with embedding on. The developers page has the details.
Quality and privacy inside embeds
The embedded player sets no third-party cookies and shows no ads. Quality follows each viewer's connection, and signed-in Premium members get 1440p and 4K inside embeds too.