To add a video to a landing page, you can use the below code as a starting point in the landing page editor. As an alternative, you can edit one of our existing landing pages that contains a video.
The code below will allow you to display a video that you are directly linking to, such as an MP4 file:
<center>Watch the video below.</center><video autoplay="" controls="" width="700"><source src="www.example.com/yourvideolink.mp4" type="video/mp4"/></video>
The code below will allow you to embed a YouTube video onto your landing page. You'll need to replace the YouTube video identifier with the identifier for your video. In the example below, the video identifier is dQw4w9WgXcQ:
<center>We're never gonna give you up! Watch the video below.</center> <iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
When using an embedded YouTube video, you can also set a specific start and end time. To set these times, add the code ?start=##&end=## after the video identifier. Then, replace the hashes with the desired number of seconds. For example, if you want the video to start at 30 seconds in and end at 210 seconds in, your code would look like the example below:
<center>We're never gonna give you up! Watch the video below.</center> <iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ?start=30&end=210" frameborder="0" allowfullscreen></iframe>
You can also add a video or video module from your ModStore library to a landing page. However, you'll first need to create a publicly-accessible URL for that video by downloading it in MP4 format and hosting it somewhere.For more information, see our How to Download Video Modules from the ModStore article.
Once you have the URL, you can use it in the example code above to display the video io your landing page. For example, your URL should look something like "www.example.com/yourvideolink.mp4".