Add comment to explain exmpty data-setup value

This commit is contained in:
Nick Mowen 2022-06-02 05:54:54 -06:00
parent 980d462a46
commit 98e240d450

View File

@ -93,6 +93,7 @@ export default function VideoPlayer({ children, options, seekOptions = {}, onRea
return (
<div data-vjs-player>
{/* Setting an empty data-setup is required to override the default values and allow video to be resizable */}
<video ref={playerRef} className="small-player video-js vjs-default-skin" data-setup="{}" controls playsinline />
{children}
</div>