kaltura / all-in-one-video-pack.wordpress

A Wordpress Plugin to simplify adding Kaltura to your Blog
https://wordpress.org/plugins/all-in-one-video-pack/
19 stars 31 forks source link

WP-75 if responsive player, use percentage for height #53

Closed muli closed 7 years ago

rkreich commented 7 years ago

@muli, seeing that the spacer calculation was removed, are we assuming that all players are chromeless?

muli commented 7 years ago

@rkreich - yes, kind of. The idea is that when a user selects a player size, the size of the player will be exactly as stated in the player selection screen. Meaning, if a user chose that the player will be 400x300, the player will take 400x300 of the post, whether the controls bar is part of the player or not (i.e. the player is defined with hovering controls).

rkreich commented 7 years ago

@muli, it means that non chromeless players would have black borders, which looks bad.. Can you provide Zohar with a few screenshots of chromless vs regular players? just to make sure that he understands how this is going to look.

muli commented 7 years ago

@rkreich - you're right. please see my latest commit, which adds 36px if the player is not chromeless.

rkreich commented 7 years ago

OK. Are you fine with hard-coding it to 36px? All default players have 36px control bar?

muli commented 7 years ago

I believe so. Would you do something else instead?

rkreich commented 7 years ago

I see that you are checking against the actual player if hovering controls are visible. Maybe it would be possible to check the actual height of the control bar.

muli commented 7 years ago

I don't think it's possible, I believe that it's in the player core CSS...