Update: This question is no longer valid. See comment below.
In a world where browser support for these 2 attributes is complete, will they benefit or in any way adversely affect the page, when embedding YouTube videos? (Yes, the last half of the question is primarily about seamless.)
I am thinking about recommending my students to always use these 2 attributes for YouTube videos and benefit automatically as browser support becomes available.
I'll focus on just discussing the sandbox
attribute.
To play YouTube videos in a sandbox you need to do the following:
sandbox="allow-scripts allow-same-origin"
?html5=1
to the video URLA problem with #1 is that Flash will not be loaded; whether Flash is required depends on a few things, such as the end-user's browser, their YouTube settings or when a video is simply not available as an HTML5 video (this is worsened by #2).
Another (more serious) problem with #1 is that the combination of allow-scripts
and allow-same-origin
effectively removes any security benefit you would have otherwise enjoyed.
Conclusion
Forget about using the sandbox
attribute for YouTube video embedding.
Further reading
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With