protected virtual void OnNewTagAtFrame(Category category, int frame) { Time pos = new Time { MSeconds = frame * 1000 / openedProject.Description.File.Fps }; player.CloseActualSegment(); player.SeekTo((long)pos.MSeconds, true); ProcessNewTag(category, pos); }
void HandleUnitChanged(GameUnit gameUnit, TimelineNode unit, Time time) { player.CloseActualSegment(); player.Pause(); player.SeekTo(time.MSeconds, true); }