Saturday, 3 June 2023

Change height and width of a React Player thumbnail using light prop

I set the thumbnail of the React Player using the light prop. Example code is as follows.

 <ReactPlayer                                              
       url= 'https://samplevideo.com'
       light = 'https://sampleimage.com'
       playing
       controls/>

This works as expected. But the thumbnail image does not always fit the react player. Sometimes only a part of the actual image is shown as the thumbnail. Is there a way to change the height and width of the thumbnail image of the react player?



from Change height and width of a React Player thumbnail using light prop

No comments:

Post a Comment