Video tags in custom blocks
We are trying to build a section that emulates the native tapcart video block but with the ability to pull the video src from metafields. In testing I have tried two methods, one where the tag is loaded in pure html with the correct source, and the other where the tag is created via js and appended to a div in the block. In the preview both methods work.
However in production neither works as expected. The html generated instance loads the video as full screen (even with the proper attributes attached to the node) when the product page is loaded and the js generated instance doesn't load at all.
Any insight into whats happening here would be helpful. Even if you could give me an idea of the environment the code block loads in so that I can dig into this further.