hi,
I have a Youtube video embedded into the modal window (without plugin) and it worked long time. Recently I noticed that video file don't loading
Error message: This video is unavailable.
I checked video files in live, nothing has been changed with the video, but it stopped loading on my side.
Can you advice what I'm doing wrong or has been changed in youtube regulations?
Here is the
Demo version [ddavi.com]
Code that I'm using
<div class="js-modal-btn" style="position: relative; cursor: pointer;" data-video-id="P3lXZvqoY1M"><img style="width: 350px; height: auto;" src="path /wp-content/uploads/2019/09/1n.jpg" />
<i class="fa fa-youtube-play" style="position: absolute; top: 50%; left: 23%; transform: translate(-50%,-50%); color: #fff; font-size: 48px;" aria-hidden="true"></i></div>
P.s. Everything is fine when I load with <iframe> in body, but client likes Modal Window version.
Any advice will be appreciated.