Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public bool IsActive(VideoPlayer p)
        {
            IVideoPlayer v = Players.FirstOrDefault(a => a.Player == p);

            if (v == null)
            {
                return(false);
            }
            v.Init();
            return(v.Active);
        }