Getting video size
I have a 2 column page like this:
| | |
| > | |
| | |
JWPlayer is on the left column with width and height = 100%. That means it resizes with the column, however as the video is 16:9, sometimes there is some empty black space around it.
Problem is: he right column is collapsible, and whenever I close it, the JWPlayer is resized, and with that comes 2 problems:
1º - Although it works well, and the video is changing it's size, the resize callback isn't fired :O
2º - When I call player.getWidth or getHeight, it returns the entire div size, and I need to know the video size.
How can I solve it?