Support

How can I embed a video in my website?

If you have already uploaded video files are now looking to embed them on your website, this process is relatively straight forward.

First click on the blue name for the video file you want to embed:

Then go to the PUBLISH SETTINGS tab for that content.

In the lower left, you should see a series of embed codes like this:

There are two types of embed codes available: JS (Javascript) and iframe. We recommend using the JS embed code, as it's more universally compatible with the full screen feature and is also a requirement in order for the URL referral restriction feature to work (which restricts content based on the websites allowed to host it).

That said, the iframe embed code is more compatible, and required for some frameworks like Wordpress and WIX.

Once you have selected your embed code type, the last step is inserting it into your website. This is going to differ a lot, but assuming you have access to edit at the HTML level it will look something like this:

 

<!DOCTYPE html>

<html>

<body>

<script id="177_f_89314" width="640" height="480" src="//static.www.dacast.com/backend/js/dacast_player.js" class="dacast-video">

</body>

</html>

 

You can change the width and the height parameters as well, which are highlighted in red above.

 

Comments

  • Avatar
    monastrial,anthonyd.

    Good Day,

    How can we disable the full screen control on the player?

  • Avatar
    romainpohyer

    When embedding the player, delete "allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen". The new iframe code would be: