Tags to edit video(screenshot)

Please note: These tags are not relevant to the drag & drop editor.

Video <video>

Displaying a video in a newsletter is not quite possible; there are few email clients that display any included video. What does work is showing a still (screenshot) of the video with a play button over it. This invites your readers to click on it, and once they do, browser will open and the video is displayed without a hitch.

Laposta makes it easy to include such a screenshot with a button; all that is required is a link to the video on YouTube or Vimeo. The screenshot will then be included automatically and may be enlarged or reduced.

By default, the screenshot links to the specified URL for the video, but you can specify a different URL in the editor. This may be useful if the screenshot should come from YouTube, but the video is recorded somewhere else (e.g. on your own website).

If the video tag is inside an a tag, then this link is used as the default value in the editor.

Options

lp-label

The value of this attribute is shown in the editor above the location that can be used to edit this video.

lp-width

This attribute is mandatory and indicates how wide the screenshot should be.

lp-src

When filling the template, the user can enter a link to a video by themself. But it is also possible to already show a video. This can be done by entering the link to this video here.

lp-resizable

Include this attribute to indicate that the screenshot may be resized.

lp-max-width

With this attribute you can specify the maximum width that can be used to enlarge the screenshot.

lp-min-width

With this attribute you can specify the minimum width to which the screenshot may be reduced.

lp-disable-href

By default, a link can be inserted behind the screenshot. If you want to disable this, you can include this attribute.

Example

By default, this shows a screenshot of the specified URL in lp-src, with a link behind it. The screenshot is 300 pixels wide, and resizable between 200 and 400 pixels.

<a href="http://example.net/page-with-video.html"><lp-video lp-width="300" lp-label="Place a video" lp-src="http://www.youtube.com/watch?v=aLwf6s2xwlU" lp-resizable lp-max-width="400" lp-min-width="200" /></a>

Still need help? Contact Us Contact Us