Problem/Motivation

Currently we set this:

    // Hide the poster image to prevent FOUC (the Video.js player grabs the
    // image and ignores this class).
    $poster['#attributes']->addClass('hidden');

in the src/Plugin/Field/FieldFormatter/VideoJsVideoPlayerFormatterTrait.php.

This works pretty well for remote / Youtube videos, but not für local / MP4 videos.

Steps to reproduce

Proposed resolution

For remote and local videos, the poster works well without the hidden class. If we really have FOUC issues with the slot="poster" image, we need to fix this using custom CSS (video-skin > img{ display: none !important }).

But for now, we should just remove the class and fix the FOUC problem separately.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork videojs-3633876

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thomas.frobieter created an issue. See original summary.

thomas.frobieter’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.