Legacy App - Knowledge Base

How can I embed a video on my website? (Legacy App)

By Elsa Thollot

4 Min Read

author avatar

Elsa Thollot

Elsa is a Product Manager at Dacast, with experience in Sales and Marketing. She takes advantage of her user-centered approach to develop high-quality products.

Table of Contents

    Share this post

    Table of Contents

      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.

      author avatar

      Elsa Thollot

      Elsa is a Product Manager at Dacast, with experience in Sales and Marketing. She takes advantage of her user-centered approach to develop high-quality products.

      Sign up for a 30-Day trial.

      Read Next

      article featured

      Can I Add Subtitles to Video Content on Dacast?

      author avatar

      Harmonie Duhamel

      3 Min Read

      article featured

      How to Get an M3U8 Live Stream URL Link for Your Live Streaming Channels

      author avatar

      Jose Guevara

      5 Min Read

      article featured

      Does Dacast Support X264 Streaming?

      author avatar

      Harmonie Duhamel

      4 Min Read