Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Changes made to Cine FPS slider are not being reflected on viewport frequency

Open mirnasilva opened this issue 7 years ago • 4 comments

Bug Report

Description

When user selects the Cine tool and drags the fps slider to a frequency different from the default, the video-images frequency on the viewport remains unchanged. This only happens when the fps modification is performed when the video is not being under execution (Play button was not clicked).

bug-cine

Steps to Reproduce

  1. Load view studies page
  2. Select the Cine tool on the toolbar
  3. Change the fps slider to 1 fps
  4. Click on Play button
  5. Verify that the velocity/frequency was not updated on the viewport
  6. Click on Stop button
  7. Change the fps slider to 90 fps
  8. Click on Play button
  9. Verify that the velocity/frequency was not updated on the viewport

Actual Result

User is changing the video fps but these changes are not being reflected on the viewport

Acceptance Criteria:

User should be able to play the video with selected frequency. User should be able to change the video fps while it is being executed or while it is not being played.

mirnasilva avatar Oct 03 '19 18:10 mirnasilva

This issue is not reproducible in the react-cornerstone-viewport example here: https://react.cornerstonejs.org/grid

This leads me to believe it's an integration / app issue.

Our CineDialog has an onFrameRateChanged prop that passes a parsedFloat to it's callback. The ConnectedCineDialog dispatches setViewportSpecificData to update the cine object for our activeViewportIndex.

Our ConnectedCornerstoneViewport maps that state to it's own frameRate prop, which is passed to our CornerstoneViewport component.

I'm not sure where the disconnect is, but hopefully that's enough context to take someone down the right path.

dannyrb avatar Oct 09 '19 19:10 dannyrb

I have tested the scenarios mentioned + some other variations and i couldn't reproduce the issue on master locally.

*We should check deployed/testing versions.

igoroctaviano avatar Oct 09 '19 19:10 igoroctaviano

Related: https://github.com/OHIF/Viewers/issues/529

dannyrb avatar Oct 09 '19 20:10 dannyrb

This is now fixed: https://viewer.ohif.org/viewer/1.3.6.1.4.1.25403.345050719074.3824.20170126085406.1

Our demo deployment on CI kept timing out, so the demo was behind master. We've temporarily turned off minification to make sure it deploys.

dannyrb avatar Oct 10 '19 12:10 dannyrb