Chaning size (height/width) of an embedded video
Dec 07, 2017
Hi, I have embedded a video on to my project using iframe. The issue is the video is not changing its size based on the height, width specified in the embed code. There is also a scroll bar appears within the frame for height which shouldn't be there. Here is the code I am using -
<iframe src='url' style='width:1333;height:750' allowfullscreen="" frameborder="0" scrolling='none'></iframe>
I have experimented with scrolling 'none' and frameborder but its working. Is it due to player that the source uses? The original code that the player suggested was - <iframe allowtransparency='true' frameborder='0' sandbox='allow-same-origin allow-forms allow-scripts' scrolling='auto' src='url' style='width:100%;height:100%'></iframe>
This was however giving a flash update warning so I changed it.