Module 801209

503 characters · in ec2910bdf4413ee9.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>a});var r=n(64700),s=n(536968);function a(e){let{videoRef:t,hlsRef:n,enabled:a,contentMetadata:l,isHls:i,debug:u}=e,o=r.useRef(null);r.useEffect(()=>{if(!a||null==t.current||i&&null==n.current)return;let e={debug:u??!1,videoElement:t.current,hlsInstance:i?n.current??void 0:void 0,feature:l.contentType,contentMetadata:l};return o.current=new s.Gb(e),o.current.initialize(),()=>{null!=o.current&&(o.current.endSession(),o.current.destroy(),o.current=null)}},[a,i,n,t,l,u])}}