fix(cine): Use the frame rate specified in DICOM and optionally auto play cine (#3735)

Co-authored-by: rareramos <rareramos1126@gmail.com>
Co-authored-by: Doug Horner <horner@mieweb.com>
Co-authored-by: Rehan <58819707+Rayhan-011@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2023-10-19 13:29:44 -04:00
1 parent fa599d05fb
commit d9258eca70
3 files changed
+47 -10

No files matched your search

@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash.debounce';
@@ -48,6 +48,10 @@ const CinePlayer: React.FC<CinePlayerProps> = ({
debouncedSetFrameRate(frameRate);
};
useEffect(() => {
setFrameRate(defaultFrameRate);
}, [defaultFrameRate]);
return (
<div
className={classNames(