protected override async Task ActivateAsync() { await base.ActivateAsync(); //needs to see what needs to be done. probably an abstract class here. await BeforePlayerInitAsync(); Player.Init(); await AfterPlayerInitAsync(); }
public bool IsActive(VideoPlayer p) { IVideoPlayer v = Players.FirstOrDefault(a => a.Player == p); if (v == null) { return(false); } v.Init(); return(v.Active); }