I created a website with a YouTube video, and in order to have a separate thumbnail, I used the following code:
<div class="embed-responsive embed-responsive-16by9 youtube" style="height: 130px; width: 240px; " src="http://molugu.com/yantraev/divayoutubethumb.jpg" id="h4cYkgPnYQk" >
<iframe src="https://youtu.be/h4cYkgPnYQk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="true"></iframe>
</div>
<script type="text/javascript" src="https://codegena.com/assets/js/youtube-embed.js"></script>
Everything is working while playing the video, but when trying to go full screen, it shows that fullscreen option is unavailable. Can someone please advise on how to fix this? Thank you in advance.