import{useState as e,useRef as t,useEffect as r}from"react";let useLiteHtml5Embed=(l,u,m)=>{let[a,d]=e(!(l&&u)),n=t(null);r(()=>{n.current?.load()},[m]);let c=()=>{d(!1),n?.current&&n.current.play()};return{playVideoAndTurnOffThumbnail:c,videoRef:n,showThumbnail:a}};export{useLiteHtml5Embed as default,useLiteHtml5Embed};
