Make WordPress Core

Opened 3 years ago

Last modified 5 months ago

#39239 new enhancement

Persist the video header state between requests

Reported by: bradyvercher Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Themes Keywords:
Focuses: Cc:


If a visitor pauses the video header, they most likely expect it to remain paused through the duration of their visit. Whether it's paused for accessibility reasons or they just find it distracting, it can be annoying to have it restart on refresh or when returning to the homepage. It can be especially troublesome when the video header is activated for every page on a site.

I've seen it mentioned in a few places, but it would be nice if the paused state was remembered between requests.

Attachments (1)

39239.diff (3.1 KB) - added by bradyvercher 3 years ago.

Download all attachments as: .zip

Change History (2)

3 years ago

#1 @bradyvercher
3 years ago

39239.diff persists the video state in local storage if it's available. When the video is paused, the autoplay property is removed or set to 0 in the YouTube handler to prevent the video from playing automatically.

Note: See TracTickets for help on using tickets.