How Can I Add Videos to My Landing Pages?
To add a video to a landing page, you can use the below code as a starting point within the landing page editor. As an alternative, you can also edit one of our existing landing pages which contain a video.
The code below will allow you to display a video which you are directly linking to (such as a .mp4 file):
<center>Watch the video below.</center>
<video autoplay="" controls="" width="700">
<source src="www.yourdomain.com/yourvideolink.mp4" type="video/mp4"/></video>
The code below will allow you to embed a YouTube video onto your landing page. Simply replace the YouTube video identifier (In this case, dQw4w9WgXcQ) with the one for your video:
<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 do this, 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 this:
<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>
Can I add a video or video module from my library to a landing page?
Yes, but first, you'll need to create a publicly-accessible URL for that video by downloading the video in .mp4 format and hosting it somewhere.
See: Downloading Video Modules in MP4 Format
Once you have that URL, you can use it in the example code above ("www.yourdomain.com/yourvideolink.mp4") to display the video within your landing page.
Comments
0 comments
Article is closed for comments.