added support to sync begin and end of the cue to current frame