Setting the right framesPerSecond on Cine

This commit is contained in:
Leonardo Campos 2017-01-20 18:47:15 -02:00
parent 7b93b6162d
commit 4f7348a09f

View File

@ -87,6 +87,14 @@ function loadDisplaySetIntoViewport(data, templateData) {
imageIds: imageIds
};
// If is a clip, updates the global FPS for cine dialog
if (displaySet && displaySet.isClip && displaySet.frameRate > 0) {
// Sets the global variable
OHIF.viewer.cine.framesPerSecond = parseFloat(displaySet.frameRate);
// Update the cine dialog FPS
Session.set('UpdateCINE', Random.id());
}
// Get the current image ID for the stack that will be rendered
imageId = imageIds[stack.currentImageIdIndex];