UNPKG

modified-dicom-pacs

Version:

A modified version of DICOM PACS implementation

2 lines 943 B
"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[939],{86939:(e,o,t)=>{t.r(o),t.d(o,{default:()=>n});var r=t(41766),s=t(11374),l=t.n(s);function a({displaySets:e}){if(e&&e.length>1)throw new Error("OHIFCornerstoneVideoViewport: only one display set is supported for dicom video right now");const{videoUrl:o}=e[0],t="video/mp4",[s,l]=(0,r.useState)(null);return(0,r.useEffect)((()=>{(async()=>{l(await o)})()}),[o]),r.createElement("div",{className:"bg-primary-black h-full w-full"},r.createElement("video",{src:s,controls:!0,controlsList:"nodownload",preload:"auto",className:"h-full w-full",crossOrigin:"anonymous"},r.createElement("source",{src:s,type:t}),r.createElement("source",{src:s,type:t}),"Video src/type not supported:"," ",r.createElement("a",{href:s},s," of type ",t)))}a.propTypes={displaySets:l().arrayOf(l().object).isRequired};const n=a}}]); //# sourceMappingURL=939.bundle.f356491f221911d97535.js.map