Skip to main content

Working with Broadcasting embed codes

Embed a camera's live stream on your website with the JS SDK or HTML code: where to find it, domain restriction, sound, autoplay and fullscreen options.

With a Broadcasting Premium or Business plan, you can show a camera’s live stream on almost any web page. On other plans the embed button is greyed out.

To share a plain link instead, see How to find your public page address. For a Wix site, see How to add your camera to a Wix site.

Get the embed code

  1. Open the camera’s Broadcasting page (the Broadcasting icon on the camera’s card) and choose Camera promotion in the menu on the left.

  2. In Embed the stream on your website, click Show embed code.

    Camera promotion: Show embed code.

    Camera promotion: Show embed code.

  3. Pick a tab, copy the code and paste it into your page.

Using JS SDK

Paste the <script> line once into your page, ideally just before </head>, and the second block where the player should appear. The player fits the width of your page automatically. Custom player size sets a fixed width and height instead.

The JS SDK embed code.

The JS SDK embed code.

Using HTML only

Paste one block where the player should appear. Under Player size, choose 16:9, 4:3 or Custom. Use this code in site builders that accept only HTML, such as Wix.

The HTML only embed code with the player size options.

The HTML only embed code with the player size options.

Allow only your domains

To stop others from embedding your stream, open Security in the Broadcasting menu and enter your domains in Domain restriction, separated by commas. It works for both kinds of embed code.

Options you can change

  • Sound is off by default. To start the player with sound, add &mute=0 to the iframe address in the HTML only code. Sound only works when the audio stream is on in the camera’s settings. See How to turn camera sound on or off.

  • Autoplay is on by default. To turn it off, add &autoplay=0 to the iframe address in the HTML only code, or pass autoplay: false in the JS SDK options.

  • Fullscreen is allowed by default. To disable it, remove webkitallowfullscreen mozallowfullscreen allowfullscreen from the HTML only code.

💡 Examples

HTML only, starting with sound:

<div style="width:100%;height:0;padding-bottom:56.25%;overflow:hidden;position:relative;"><iframe src="https://v.angelcam.com/iframe?v=xxxyyyzzz&autoplay=1&mute=0" frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true" style="height:100%;position:absolute;top:0;width:100%;left:0;"></iframe></div>

JS SDK with autoplay turned off:

<script type="text/javascript" src="https://v.angelcam.com/js_sdk"></script>
<div id="player_cameraname"></div>
<script>
  new Angelcam.player('player_cameraname', { id: 'xxxyyyzzz', autoplay: false });
</script>

When broadcasting stops

When you turn off public broadcasting, or the broadcasting schedule closes, the players on your page stop within about a minute.

Did this answer your question?