react-player icon indicating copy to clipboard operation
react-player copied to clipboard

How Can i put a COVER IMAGE?

Open phantodev opened this issue 4 years ago • 1 comments

Guys i am playing a FILE in react-player... and i want put a cover imagem in my player?

Can i?

phantodev avatar Jul 18 '21 19:07 phantodev

@phantoxe I'd recommend passing a url to the poster property for the file player:

         config={{
            file: {
              attributes: {
                poster: placeholderImage?.src,
              },
            },
          }}

noahsark769 avatar Jul 24 '21 03:07 noahsark769

Hey , we submitted a PR creating a new component that deals with a similar problem , but basically you can put a cover image adding a URL to the light component.

itsaalexk avatar Oct 09 '22 10:10 itsaalexk