-4

I want to add a iframe video on my squarespace page with mute and loop functions. I tried Youtube API but it did not work out. Please help!

Shubham Sharma
  • 2,763
  • 5
  • 31
  • 46
  • What did you try? Code? – Charlie Fish Jul 16 '16 at 05:44
  • I tried Youtube API customised block but when i tried embedding it with squarespace, it was not visible. "This block contains embedded scripts. Embedded scripts are disabled while you're logged in and editing your site. PREVIEW IN SAFE MODE " – vinayak mishra Jul 16 '16 at 05:48
  • 1
    Sounds like the error gave you all the info you need. "Embedded scripts are disabled while you're logged in and editing your site." – Charlie Fish Jul 16 '16 at 05:49
  • I tried logging out and get in as a visitor. But the video was not popping up. – vinayak mishra Jul 16 '16 at 05:50
  • So when you logged out and got in as a visitor did it give you any errors? Could we see your code? – Charlie Fish Jul 16 '16 at 05:51
  • http://www.allsoftlearn.com/internet/how-to-embed-a-youtube-video-with-sound-muted/ I used this custom Youtube API. – vinayak mishra Jul 16 '16 at 05:53
  • 1
    That doesn't really help. What is the code that you have? And when you logged out and got in as a visitor did it give you any errors? – Charlie Fish Jul 16 '16 at 05:55
  • When i logged out and got in as a visitor, nothing was visible. Only when i was logged in, "This block contains embedded scripts. Embedded scripts are disabled while you're logged in and editing your site." was popping up. Squarespace takes iframe blocks. I tried some youtube API parameters to mute the iframe but it did not work out. – vinayak mishra Jul 16 '16 at 05:58
  • 1
    Ok well we can't help you without seeing the code you wrote. – Charlie Fish Jul 16 '16 at 05:59
  • This is the code which i want to mute. Do you know of any parameter which we can append? – vinayak mishra Jul 16 '16 at 06:00
  • Do you have a closing quote around your src url? And I would remove the semi colon after the src – Charlie Fish Jul 16 '16 at 06:01
  • http://stackoverflow.com/questions/24868226/how-do-you-mute-an-embedded-youtube-player – Charlie Fish Jul 16 '16 at 06:01
  • Tried but not working. Squarespace just takes iframes and not custom JS. – vinayak mishra Jul 16 '16 at 06:04
  • 1
    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example. – sao Oct 26 '19 at 11:22

1 Answers1

-1

There isn't any way to mute YouTube Audio without using Javascript. You have to use Javascript to mute YouTube Audio. There is no way to do it with just iFrames.

Charlie Fish
  • 18,491
  • 19
  • 86
  • 179