After loading the video from YouTube, I noticed this outcome:
https://i.sstatic.net/3Vbtd.jpg
When I tried loading the same video from Cloudinary, the result was different:
https://i.sstatic.net/iNGoe.png
ISSUE: Despite being the exact same video, the video loaded from Cloudinary does not fill the entire iframe
window.
Here is the code for both implementations:
<iframe
className="embed-responsive-item"
src={
generic_profile.videoURL == undefined
? "https://www.youtube.com/embed/wYxDJOFgDw0"
: cloudinayURL
}
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
NOTE: This is in the context of ReactJs.
QUERY: Is there a solution to this discrepancy?