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
Comments
Comment #4
thomas.frobieter