I was doing a project when I came across the following answer on the site.
The code generated by the BSS is the one below.
<div class="ratio ratio-16x9"><iframe src=""></iframe></div>
I got a temporary solution using custom code as below.
<iframe class="ratio ratio-16x9" src="https://www.youtube.com/embed/XHOmBV4js_E" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
This is the embed code generated by YouTube, I just removed the width and height and added the class=“ratio ratio-16x9”
I ask the BSS team to check the error and, if possible, correct it.
Another solution is to use the link generated by Youtube itself to embed the video.
Just copying the video link doesn’t work.
Example:
(https://youtu.be/XHOmBV4js_E)
This youtube generated link above does not work.
(https://www.youtube.com/embed/XHOmBV4js_E)
This other link generated above to embed the video already works.
(https://www.youtube.com/watch?v=XHOmBV4js_E)
The link above is what appears in the browser’s address bar, this also does not work.
In short, problem solved!