public Video GiveVideo(MathVideos video) { string p = Engine.ResourcePath; switch (video) { case MathVideos.BEGIN: return(new Video() { BasePath = Path.Combine(p, "MATH_BEGIN.mp4"), BaseStartsOnScreen = true, id = 0, OffScreenEndingPath = null, OnScreenEndingPath = null, Request_TAG = "", TAGS = new List <string>() }); case MathVideos.MID: return(new Video() { BasePath = Path.Combine(p, "MATH_WAIT.mp4"), BaseStartsOnScreen = true, id = 0, OffScreenEndingPath = null, OnScreenEndingPath = null, Request_TAG = "", TAGS = new List <string>() }); case MathVideos.END_BAD: return(new Video() { BasePath = Path.Combine(p, "MATH_END_BAD.mp4"), BaseStartsOnScreen = true, id = 0, OffScreenEndingPath = null, OnScreenEndingPath = null, Request_TAG = "", TAGS = new List <string>() }); case MathVideos.END_GOOD: return(new Video() { BasePath = Path.Combine(p, "MATH_END_GOOD.mp4"), BaseStartsOnScreen = true, id = 0, OffScreenEndingPath = null, OnScreenEndingPath = null, Request_TAG = "", TAGS = new List <string>() }); } return(null); }
private TimeSpan TriggerVideo(MathVideos vid) { if (!vplong) { return(TimeSpan.Zero); } //1. Get the physical Video Video toPlay = Database.GiveVideo(vid); if (toPlay == null) { return(TimeSpan.Zero); } //2. Issue Video with priority ClearAndPlay(toPlay); //3. Dummy return return(TimeSpan.Zero); }
public Video GiveVideo(MathVideos video) { return(LoadVideoFromTag(null)); }