Пример #1
0
 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");
     }
 }
Пример #2
0
    public void Seek(double newTime)
    {
        var correctedTime = OnSeek?.Invoke(newTime);

        video.time = correctedTime ?? newTime;
    }
Пример #3
0
 public void Seek(SeekType seekType, Time start = null, float rate = 1)
 {
     SeekEvent?.Invoke(seekType, start, rate);
 }