Close_Notes Posted May 22, 2020 Share Posted May 22, 2020 I am embedding a video on my page and using autoplay feature, however, I want to be sure the volume is automatically lowered. I know there is probable a CSS code that does this. I found the following code but I need to use my block ID and can't figure out how. #block-yui_3_17_2_1_1590117024504_74511 /* video volume on auto */ {var video=document.getElementById(#block-yui_3_17_2_1_1590117024504_74511); video.volume=0.1;} Link to comment
tuanphan Posted May 22, 2020 Share Posted May 22, 2020 Can you share link to page where you use video? or use this tool to find block id. https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde 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
Close_Notes Posted May 23, 2020 Author Share Posted May 23, 2020 The block ID is: #block-yui_3_17_2_1_1590117024504_74511 I inserted it in the snippet of code I pasted but it looks like it's searching for an element ID. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.