Fix storyboard video playback when not starting at beginning of beatmap

This commit is contained in:
Dean Herbert 2020-07-16 14:25:45 +09:00
parent f0fa859609
commit 0a1e6a8273

View File

@ -55,10 +55,11 @@ namespace osu.Game.Storyboards.Drawables
if (video == null) return;
video.PlaybackPosition = Clock.CurrentTime - Video.StartTime;
using (video.BeginAbsoluteSequence(0))
using (video.BeginAbsoluteSequence(Video.StartTime))
{
Schedule(() => video.PlaybackPosition = Time.Current - Video.StartTime);
video.FadeIn(500);
}
}
}
}