We need to find a way to save the previewOnHover data persistently in the block markup to implement the feature in the front end. For now, what we need to store previewOnHover, previewAtTime and loopDuration.
I guess that we can define the data-preview-on-hover property that would contain the atTime and duration values in (parsed) JSON notation.