Repository navigation
Conversation
The dicom-video extension now also exports a viewport module, `dicom-video`, that plays a video display set in a native <video> element with the browser's own controls. It gives modes whose image viewports are not Cornerstone (for example a NiiVue-only mode) a way to show video series. Existing modes are unchanged: they keep mapping video to the Cornerstone viewport. The viewport fetches through the display set's getVideoUrl (data source auth headers, object URL revoked on unmount) and falls back to videoUrl, registers its element with useViewportElementRegistration, and compiles under the React Compiler. Adds unit tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@jbocce @sedghi @wayfarer3130 this is the base of #6364 (the NiiVue mode): a plain HTML5 video viewport in |
|
I think I'd be more inclined to a change to just register the minimal set of display set information to enable using the existing viewport to work. Otherwise I don't really see an advantage to having this in CS3D since it won't interact with anything else such as key objects for selecting video ranges, occlusion boxes etc, whereas it would be very helpful to have a registerVideoMetadata method in the metadata package that simply creates fake metadata and uses the real video url to display in the existing viewport. That way you can call it from OHIF and it will just become part of the study, or will be it's own study and you can calibrate frames etc. |
|
Thanks @wayfarer3130, agreed. I hadn't noticed that 3.13 already removed the |
Context
Video series in OHIF play through the Cornerstone video viewport. A mode whose image viewports are not Cornerstone, such as the NiiVue-only mode in the follow-up PR (part of niivue/mono#269, the NiiVue 1.0 OHIF viewer), has nothing to map the dicom-video SOP class handler to.
This is the first PR of a stack; the NiiVue mode PR builds on it.
Changes & Results
@ohif/extension-dicom-videonow also exports a viewport module,dicom-video(OHIFDicomVideoViewport), that plays the display set in a native<video>element with the browser's own controls.getVideoUrl(data source auth headers; the object URL is revoked on unmount or display set change) and falls back tovideoUrl.useViewportElementRegistration.Testing
npx jest extensions/dicom-videopnpm run compiler:coverage:ciandpnpm run lint:compiler:cicd platform/app && pnpm buildChecklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals. (The new viewport module is not documented yet; happy to add a docs page if wanted.)
Tested Environment
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Tests