In first part of this mini blog series, I have showed you how to easily add Youtube videos to your pages with build in SXA Video component.

How to add videos to your pages mini blog series:

  1. Part 1: Youtube videos
  2. Part 2: Vimeo and Facebook videos (this article)

 

For Vimeo and Facebook, it is not that easy to add videos to pages as it was for Youtube but still it is doable with few tricks. In this case I will use IFrame component instead of Video component as Video component is not supporting these services. You can find that component in “Page Structure” section of Toolbox:

VideoSXA02

Now just follow below steps for chosen service to get proper urls that you will use in IFrame component like this:

 

VideoSXA03b

 

1) Adding Vimeo videos

To get URL for Vimeo video, hover on Share button (Paper plain icon) on top right side of video:

VideoSXA04

 

Modal window will be opened and you need to copy url that is located in src attribute of iframe element in Embed section as highlighted below:

VideoSXA05

Now add IFrame component from Toolbox into your Page and edit the the link like this:

VideoSXA03b

 

Just paste the url copied above (https://player.vimeo.com/video/…) to URL field (Step 5 in above picture) and click OK.

This is the result for Vimeo:

VideoSXA06

 

2) Adding Facebook videos

To get URL for Facebook video, click on “…” button next to Share button on bottom right side of video and click “Embed”:

VideoSXA07

 

Modal window will be opened and you need to copy url that is located in src attribute of iframe element as highlighted below:

VideoSXA08

Now add IFrame component from Toolbox into your Page and edit the the link like this:

VideoSXA03b

Just paste the url copied above (https://www.facebook.com/plugins/video.php…) to URL field (Step 5 in above picture) and click OK.

 

URL should look like this:

VideoSXA08b

This is the result for Facebook:

VideoSXA09

Cheers