BekarHaus Posted December 7, 2022 Share Posted December 7, 2022 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 tuanphan Posted December 10, 2022 Solution Share Posted December 10, 2022 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
BekarHaus Posted December 14, 2022 Author Share Posted December 14, 2022 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
tuanphan Posted December 17, 2022 Share Posted December 17, 2022 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
BekarHaus Posted January 10 Author Share Posted January 10 Thank you Tuan 😀 I marked it as solved. bekar.haus Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment