Jump to content

Video URL Source

Go to solution Solved by tuanphan,

Recommended Posts

Hi members!

I recently ran into a problem.

Little description:

In Code Block I embedded video.

I find previously uploaded video file in

Asset Library > File Details >> Developer Tools (Chrome) > select element (video) > Copy URL >>> Paste in code in Code Block

Few weeks ago it worked fine.

 

Problem is that before structure was;

https://video.squarespace-cdn.com/content/v1/.../mp4-h264-aac-1920:1080 or /mp4-h264-1920:1080 or /mp4-h264-aac-2560:1080 etc.

And now structure is:

https://video.squarespace-cdn.com/content/v1/.../thumbnail

So, pasted code in Code Block is not video but thumbnail.

 

In Forum I found workaround to structure code like this: yourdomain/s/videofile.mp4

But for me it is not solution, because it is relative to temporary domain while I’m working on unpublished page, on other hand “video.squarespace-cdn.com" is absolute and there is no need to change after page is published.

In addition, if I paste that URL in browser it went straight to download (Do you want to allow downloads on “static1.squarespace.com”?):

https://bekarhaus.squarespace.com/s/Untitled-2-Broadband-High.mp4

In Contrast if i paste:

https://video.squarespace-cdn.com/content/v1/60103bdffecb075463e39396/68520104-afa3-47a5-9170-bba0d96181f9/mp4-h264-1920:1080

It plays video.

Question is: where and how can I find URL structured as:

https://video.squarespace-cdn.com/content/v1/.../mp4-h264-aac-1920:1080

 

Best Regards

Duško Bekar

bekar.haus

Link to comment
  • Solution

There is no way to get direct video with that way. Try upload video via this guide: https://support.squarespace.com/hc/en-us/articles/205813928-Uploading-and-managing-files

Suppose your video name is: abc.mp4

Then after uploading, the video url will be: yourdomain/s/abc.mp4

eg: tuanphan.squarespace.com/s/abc.mp4

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Hello Tuan,
Thank you very much to take your time and look into it.

I managed to use relative path. > /s/filename.mp4

Absolute path is working, also. > domain.name/s/filename.mp4

So, final code is

<video style="width: 100%" playsinline controls controlsList="nodownload" autoplay muted loop
  src="/s/filename.mp4">
    <source type="video/mp4" src="/s/filename.mp4">
  <body oncontextmenu="return false;">
</video>

I don't know how I managed before to pick URL's for movies, but you can test it...

https://video.squarespace-cdn.com/content/v1/60103bdffecb075463e39396/1edc548b-5aaa-4a3e-9510-720f60f4e956/mp4-h264-1920:1080


https://video.squarespace-cdn.com/content/v1/60103bdffecb075463e39396/1edc548b-5aaa-4a3e-9510-720f60f4e956/mp4-h264-1920:1080

Best

Duško Bekar
 

bekar.haus

Link to comment
On 12/14/2022 at 8:46 PM, BekarHaus said:

Hello Tuan,
Thank you very much to take your time and look into it.

I managed to use relative path. > /s/filename.mp4

Absolute path is working, also. > domain.name/s/filename.mp4

So, final code is

<video style="width: 100%" playsinline controls controlsList="nodownload" autoplay muted loop
  src="/s/filename.mp4">
    <source type="video/mp4" src="/s/filename.mp4">
  <body oncontextmenu="return false;">
</video>

I don't know how I managed before to pick URL's for movies, but you can test it...

https://video.squarespace-cdn.com/content/v1/60103bdffecb075463e39396/1edc548b-5aaa-4a3e-9510-720f60f4e956/mp4-h264-1920:1080


https://video.squarespace-cdn.com/content/v1/60103bdffecb075463e39396/1edc548b-5aaa-4a3e-9510-720f60f4e956/mp4-h264-1920:1080

Best

Duško Bekar
 

These aren't video url. Video url has been encrypted and it shows as you sent.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 weeks later...
  • 1 year later...
On 12/7/2022 at 4:00 PM, BekarHaus said:

Hi members!

I recently ran into a problem.

Little description:

In Code Block I embedded video.

I find previously uploaded video file in

Asset Library > File Details >> Developer Tools (Chrome) > select element (video) > Copy URL >>> Paste in code in Code Block

Few weeks ago it worked fine.

 

Problem is that before structure was;

https://video.squarespace-cdn.com/content/v1/.../mp4-h264-aac-1920:1080 or /mp4-h264-1920:1080 or /mp4-h264-aac-2560:1080 etc.

And now structure is:

https://video.squarespace-cdn.com/content/v1/.../thumbnail

So, pasted code in Code Block is not video but thumbnail.

 

In Forum I found workaround to structure code like this: yourdomain/s/videofile.mp4

But for me it is not solution, because it is relative to temporary domain while I’m working on unpublished page, on other hand “video.squarespace-cdn.com" is absolute and there is no need to change after page is published.

In addition, if I paste that URL in browser it went straight to download (Do you want to allow downloads on “static1.squarespace.com”?):

https://bekarhaus.squarespace.com/s/Untitled-2-Broadband-High.mp4

In Contrast if i paste:

https://video.squarespace-cdn.com/content/v1/60103bdffecb075463e39396/68520104-afa3-47a5-9170-bba0d96181f9/mp4-h264-1920:1080

It plays video.

Question is: where and how can I find URL structured as:

https://video.squarespace-cdn.com/content/v1/.../mp4-h264-aac-1920:1080

 

Best Regards

Duško Bekar

The /thumbnail url you found is usable, check my answer here

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.