How can I embed a video on my website?

You are here:
< Back

How to embed a video file:

If you have already uploaded video files, and you’re now looking to embed a video on your website, this process is relatively straight-forward.

First, within your Dacast account, click on the blue name for the video file you want to embed:

embed a video

Next, go to the PUBLISH SETTINGS tab for that content.

In the lower-left, you should see a series of embed codes as pictured below:

embed a video

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.

12 thoughts on “How can I embed a video on my website?

  1. Mark says:

    Is it possible to change the colors of the player itself?
    My site is a darker site, and the player seems to default to bright white background with black letters.
    Is there a way to have the player be dark with white letters?

    • admin says:

      Thank you for your interest in Dacast’s Streaming Solutions. Please
      contact our Customer Support team at this link and someone will be
      more than happy to assist you. Have a great day!

    • Harmonie Duhamel says:

      Hi Bruno, As far as I know, this feature should be available. Could you please contact our support team to let them know the situation you are experiencing? Email: support@dacast.com
      Thank you!

  2. Sam says:

    How do I insert a Dacast video into a FileMaker Pro web viewer object. I know how to do this with VIMEO vids but am unsure of the exact string of code to take in order to display the Dacast vid.

    • Harmonie Duhamel says:

      Hi Sam, You can do it by taking the embed code in your back-office. Let me know if there is anything else I can do to help you. Have a nice day!

    • Harmonie Duhamel says:

      Hi Behnam, I just reviewed the settings, and they are showing correctly right now. Can you confirm? If you need further technical assistance, do not hesitate to contact our support team via the chat available on our platform directly. Let me know if there is anything else I can do to help you. Have a great day. Best regards,

Leave a Reply

Your email address will not be published. Required fields are marked *