示例#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();
        }
示例#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);
        }