1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Merge pull request #9579 from peppy/fix-video-offset

Fix storyboard video playback when not starting at beginning of beatmap
This commit is contained in:
Dan Balasescu 2020-07-16 15:50:09 +09:00 committed by GitHub
commit 81a09b621c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}
}
}