public void TriggerSeek() { if (seekType != SeekType.None) { SeekEvent?.Invoke(seekType, start, rate); } else { throw new InvalidOperationException("You should call Seek before trying to trigger it"); } }
public void Seek(double newTime) { var correctedTime = OnSeek?.Invoke(newTime); video.time = correctedTime ?? newTime; }
public void Seek(SeekType seekType, Time start = null, float rate = 1) { SeekEvent?.Invoke(seekType, start, rate); }