Make WordPress Core

Opened 7 years ago

Last modified 6 weeks ago

#42353 new defect (bug)

Header video does not load below 900px after resized and refreshed.

Reported by: sachyya-sachet's profile sachyya sachet Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8.2
Component: Themes Keywords: close 2nd-opinion
Focuses: ui Cc:

Description

Header Media video does not load on screen size less than 900px after resized and refreshed. Instead Header Media Image is loaded.

Tested on Twenty Seventeen theme and WordPress version 4.8.2.

Steps:
Set the video URL in the customizer's Header Media.
Resize the screen and refreshed below 900px.
The video does not load instead header image is shown.

Change History (4)

#1 @williampatton
5 years ago

  • Component changed from Themes to Bundled Theme

#2 @nielslange
5 years ago

  • Summary changed from Header video does not load below 900px after resized and refreshed. to Twenty Seventeen: Header video does not load below 900px after resized and refreshed.

#3 @karmatosed
6 weeks ago

  • Keywords needs-testing added

#4 @sabernhardt
6 weeks ago

  • Component changed from Bundled Theme to Themes
  • Keywords close 2nd-opinion added; needs-testing removed
  • Summary changed from Twenty Seventeen: Header video does not load below 900px after resized and refreshed. to Header video does not load below 900px after resized and refreshed.

Hi and thanks for the report!

This is intentional, though the values were somewhat arbitrary (see ticket:38172#comment:61).

You could use the header_video_settings hook to reduce the minimum width and height.

function wptrac_header_video_settings( $settings ) {
	$settings['minWidth']  = 700;
	$settings['minHeight'] = 300;
	return $settings;
}
add_filter( 'header_video_settings', 'wptrac_header_video_settings' );
Note: See TracTickets for help on using tickets.