I suspect you should be able to add the attribute in the way you describe. You’ll have to get creative to find a way to select the right iFrame. Or maybe there’s not much harm in adding the attribute to every iFrame on the page. I don’t think the function they have on $ is jQuery, but you don’t need jQuery to select elements: just use document.querySelector() or querySelectorAll().
Use the Tracking & Analytics feature in the site dashboard to inject code to the site.
Hi Lee,
I JUST WANT TO EXPRESS ABSOLUTE GRATITUDE TO YOU.
I spent 6 months trying to figure out a way to accomplish this and you just gave me the key to do it.
It works and I am absolutely astonished. I seriously do not know how to thank you enough.
-Logan
Thanks to lee’s hints and Logan’s confirmation that there was, indeed, a solution I was able to get access to the camera on both Chrome and Safari by adding the following code snippet under the “Tracking & Analytics” section of the dashboard as part of Body-End code. I know just enough about coding to be pretty dangerous so use with much discretion. If someone has suggested improvements, I welcome them.
When adding this code, I set it to add code to “all Pages” and to “Load code once”