Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Help with custom code for embed YouTube video!


Sibylle_Zurich

Question

Site URL: https://nectarine-oboe-kme5.squarespace.com/trial-or-never

Hi there

Can anyone please help me with the integration of a Youtube video in Squarespace (autoplay and loop must work individually for each video). Our client is a photographer and she does NOT want that anyone can see that the video is embed from YouTube on her website. No headline, play button, sharing icon ecc..... 

It should look like in version 1 - but would be much easier if it works with YouTube.

https://nectarine-oboe-kme5.squarespace.com/trial-or-never

password: nowornever

Many thanks and kind regards

Sibylle 

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
9 minutes ago, ornever said:

Can anyone please help me with the integration of a Youtube video in Squarespace (autoplay and loop must work individually for each video)?


You can do this with a Vimeo paid plan such as Vimeo Pro. However, you cannot do this with YouTube. As a free service, they want their branding to be visible. 

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment
  • 0
On 2/8/2021 at 9:23 AM, paul2009 said:


You can do this with a Vimeo paid plan such as Vimeo Pro. However, you cannot do this with YouTube. As a free service, they want their branding to be visible. 

Hi paul2009

I have now a Vimeo Chanel and was able to set up all the settings for autoplay and loop. But unfortunately it still does not work for some videos. Could you please help me again with this?

https://nectarine-oboe-kme5.squarespace.com/

NEW password: orneverornow

 

I am trying to autoplay all videos on the homepage linked to my Vimeo. The background video in the header works like a charm, but later the next videos have some issues. I adjusted the code, but i can't find why it is not autoplaying on the site.

1. code box

I embed a simple code box. There the autoplay works. But it is not fullscreen?! How can i fix the sizes, also in responsive??

Code:

<center>
<iframe src="https://player.vimeo.com/video/330769192??autoplay=1&loop=1&autopause=0&background=1&color=ffffff&controls=2&portrait=0" width="900" height= "600"  frameborder="0" allow="autoplay; fullscreen"allowfullscreen></iframe>
</center>

 

2. video box

Here I inserted a normal video box. 

Code:

<iframe src="https://player.vimeo.com/video/330769192?autoplay=1&loop=1&color=EEEDEB&title=0&byline=0&portrait=0" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>

 

 

I don't see the need of making a PRO account, but please let me know if that is the solution.

Many thanks!

Sibylle

Link to comment
  • 0
On 2/8/2021 at 9:14 PM, Sibylle_Zurich said:

Site URL: https://nectarine-oboe-kme5.squarespace.com/trial-or-never

Hi there

Can anyone please help me with the integration of a Youtube video in Squarespace (autoplay and loop must work individually for each video). Our client is a photographer and she does NOT want that anyone can see that the video is embed from YouTube on her website. No headline, play button, sharing icon ecc..... 

It should look like in version 1 - but would be much easier if it works with YouTube.

https://nectarine-oboe-kme5.squarespace.com/trial-or-never

password: nowornever

Many thanks and kind regards

Sibylle 

@Sibylle_Zurich You can do this with a Vimeo or a Youtube link.  But don't use a code block, use a Squarespace Video block.

Below you can see I have used the below code inside Squarespace's video block.  But instead of adding the link, you can click <>  and insert this code below but change out your video ID. 

This makes the videos autoplay and loop.  You can adjust the controls and sound (background), etc too. See below and screenshot attached for reference. 

For an example: I am using it on my SquareKicker website here:  https://squarekicker.com/features

Just swap out the Vimeo / YouTube ID number for yours. 

VIMEO
<iframe src="https://player.vimeo.com/video/625215456?autoplay=1&loop=1&autopause=0&background=1&color=ffffff&controls=0&portrait=0" width="800" height= "500"  frameborder="0" allow="autoplay; fullscreen"  allowfullscreen></iframe>

YOUTUBE
<iframe width="100% !important" src="https://www.youtube.com/embed/oyuCciYX2S4?playlist=oyuCciYX2S4&autoplay=1&mute=1&controls=0&loop=1" frameborder="0" allow="accelerometer; " allowfullscreen></iframe>

Note: Youtube needs a playlist to loop the video, just use the same video ID

1465171763_AutoplayVideoonSQSP.thumb.png.7862dd46de2130be5a6fb61be841d8b9.png

SquareKickerHi, I'm Nick Ippolito, founder at squarekicker.com SquareKicker is a No-Code Design & Animation Extension for Squarespace. Say goodbye to copy & paste plugins and unlock your creativity and explore a whole new level of the unlimited design possibilities without ever having to write a single line of code.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...