I’m having trouble and I’m not sure why adding some JS to a page I’m working on that will inject the playsinline
property to my background videos so that they will play on iOS. I’ve found a few topics in here with answers, but none of them are working for me. Here is my code:
jQuery(document).ready(function(){
jQuery('.x-bg video').prop('playsinline',true);
});
I’ve tried adding this in the JS menu for the page in question and I’ve tried adding in a <script defer="defer">
tag in the header, but neither are injecting the playsinline
property into my video code. Any tips?