Description
Filter the maximum height of vertical players, like the players of YouTube Shorts, so they are never taller than the screen. It is the maximum height of every player (see cbc_player_max_height) or 80vh when players are not limited in height. Available since Video Hub 2.3.2.
Parameters
- $max_height
- (string)(required) CSS length, like
80vhor600px.
Examples
Limit vertical videos to 640 pixels.
add_filter( 'cbc_vertical_player_max_height', function() {
return '640px';
} );