How can I get the correct format of an iframe
embedded Youtube video using jQuery?
I need to know if the video is originally (at Youtube) in 3:4 format or 9:16 format or something else.
And I need this in order to remove some black bars from the top and bottom (from my question: Show Youtube video and thumbnail in correct 9:16 format) that are added to the video and its thumbnail. If I can find the correct format, I might be able to hide these bars by adjusting the height.
Update
I use the plugin prettyPhoto for jQuery to play a youtube video by simply having the URL. This is the driving code:
$(document).ready(function(){
/*Youtube videos*/
$("a[rel^='prettyPhoto']").prettyPhoto({
animation_speed: 'fast',
slideshow: 8000,
hideflash: true,
show_title: false,
changepicturecallback: function(){
/*At video start do some stuff*/
},
social_tools: false
});
});
That means, I don't myself add and create the video iframe for the youtube film. I don't have much experience with Youtube's API. Is there a straight ahead way to find the original video ratios?