示例#1
0
 private void loadNewVideo()
 {
     AddStep("load video", () =>
     {
         videoContainer.Child = video = new TestVideo {
             Loop = false,
         };
     });
 }
示例#2
0
 private void loadNewVideo(string format = "mp4")
 {
     AddStep("Reset clock", () =>
     {
         clock.CurrentTime = 0;
         didDecode         = false;
     });
     AddStep($"load .{format} video", () =>
     {
         videoContainer.Child = video = new TestVideo(videoStore.GetStream($"sample-video.{format}"))
         {
             Loop   = false,
             Origin = Anchor.Centre,
             Anchor = Anchor.Centre,
         };
     });
     AddUntilStep("Wait for video to load", () => video.IsLoaded);
     AddStep("Reset clock", () => clock.CurrentTime = 0);
 }