Make WordPress Core

Opened 7 years ago

Closed 3 months ago

#42353 closed defect (bug) (worksforme)

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

Reported by: sachyya-sachet's profile sachyya sachet Owned by:
Milestone: 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 (5)

#1 @williampatton
6 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
12 months ago

  • Keywords needs-testing added

#4 @sabernhardt
12 months 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' );

#5 @karmatosed
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Thank you everyone, as this is indeed intentional I agree with the recommendation to close this. If however, that doesn't work please update this ticket with other information, we can always reopen if people feel strongly. For now, I am going to agree that it is working as expected and works for me.

Note: See TracTickets for help on using tickets.