WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#35771 new defect (bug)

Setting Size for Native Video Player Doesn't Work

Reported by: Tranny Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:
PR Number:

Description

Width and height rules do not affix the size of the embedded native media player.

Width is ultimately honored, but height setting is overruled and set proportionally based on video's proportions. Consequently, if width of the player is set to fill in the theme's available content space, but the embedded video is vertical (filmed vertically, whereby height of the video is greater than width), then the player will be stretched way too tall, regardless of height settings (which is ultimately ignored).

To reproduce:

Embed any locally hosted, vertical video using native video player, using the Embed Media Player option from the Insert Media attachment window. Set width to the width of your theme's content area, and height to less than width. Height will not be honored.

Desired solution:

Set player size to the width and height chosen by the user. Fit the video within the set space of the player.

Change History (2)

#1 @obenland
4 years ago

  • Version trunk deleted

This ticket was mentioned in Slack in #core-media by desrosj. View the logs.


2 years ago

Note: See TracTickets for help on using tickets.