File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ class CornerstoneViewport extends Component {
133133 cornerstoneOptions,
134134 imageIds,
135135 resizeThrottleMs,
136+ isPlaying,
137+ frameRate,
136138 } = this . props ;
137139 const { imageIdIndex } = this . state ;
138140 const imageId = imageIds [ imageIdIndex ] ;
@@ -174,6 +176,11 @@ class CornerstoneViewport extends Component {
174176 _enableStackPrefetching ( this . element ) ;
175177 }
176178
179+ if ( isPlaying ) {
180+ const validFrameRate = Math . max ( frameRate , 1 ) ;
181+ cornerstoneTools . playClip ( this . element , validFrameRate ) ;
182+ }
183+
177184 _addAndConfigureInitialToolsForElement ( tools , this . element ) ;
178185 _trySetActiveTool ( this . element , this . props . activeTool ) ;
179186 this . setState ( { isLoading : false } ) ;
You can’t perform that action at this time.
0 commit comments