Set data-options so videojs accepts size changing

This commit is contained in:
Nick Mowen 2022-06-01 14:05:38 -06:00
parent d660b4f754
commit 980d462a46

View File

@ -93,7 +93,7 @@ export default function VideoPlayer({ children, options, seekOptions = {}, onRea
return ( return (
<div data-vjs-player> <div data-vjs-player>
<video ref={playerRef} className="small-player video-js vjs-default-skin" controls playsinline /> <video ref={playerRef} className="small-player video-js vjs-default-skin" data-setup="{}" controls playsinline />
{children} {children}
</div> </div>
); );