Hızlı yanıt: kod örneği
Here is a example of embedding without an iFrame:compare to regular iframe "embed" code from YouTube:and as far as HTML5 goes, use tag like so (corrected):
<div style="width: 560px; height: 315px; float: none; clear: both; margin: 2px auto;"> <embed src="https://www.youtube.com/embed/J---aiyznGQ?autohide=1&autoplay=1" wmode="transparent" type="video/mp4" width="100%" height="100%" allow="autoplay; encrypted-media; picture-in-picture" allowfullscreen title="Keyboard Cat" ></div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/J---aiyznGQ?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<object>
<object style="width: 820px; height: 461.25px; float: none; clear: both; margin: 2px auto;" data="http://www.youtube.com/embed/J---aiyznGQ?autoplay=1"></object>