Beispiel #1
0
 static void LoadPart0()
 {
     CreateNotify(main_canv);
     //WebClass.SetCookie();
     DownLoad.GetVideoList();
     //Login.Initial(canA);
     //Timer.ChangeDeletgate(LoadItemBuff);
     Timer.Stop();
     //DownLoadEx.InitialA();
     if (Setting.version != Setting.cur_version)
     {
         Setting.version = Setting.cur_version;
         Tip();
     }
     Buffcomponent();
 }
Beispiel #2
0
        public static void PlayControl(string vid)
        {
            int index = vp.operation;

            switch (index)
            {
            case 1:
                DownLoad.AddVid(vid);
                Main.Notify("已添加至缓存列表", Component.nav_brush, Component.font_brush, 300);
                break;

            default:
                Player.Setvid(vid);
                PageManageEx.CreateNewPage(PageTag.player);
                break;
            }
        }
Beispiel #3
0
        public async static void PlayEx(int index, StorageFolder s)
        {
            playindex = index;
            miss      = DownLoad.Getmission(index);
            part      = 0;
            sf        = s;
            ss        = await s.CreateFileAsync("0", CreationCollisionOption.OpenIfExists);

            IRandomAccessStream i = await ss.OpenAsync(FileAccessMode.Read);

            part = 0;
            me.SetSource(i, ss.FileType);
            me.Play();
            if (iras != null)
            {
                iras.Dispose();
            }
            iras = i;
        }
Beispiel #4
0
        async static void PlayNextPart()
        {
            miss = DownLoad.Getmission(playindex);
            if (miss.progress[part] == 1)
            {
                ss = await sf.CreateFileAsync(part.ToString(), CreationCollisionOption.OpenIfExists);

                IRandomAccessStream i = await ss.OpenAsync(FileAccessMode.Read);

                part = 0;
                me.SetSource(i, ss.FileType);
                me.Play();
                if (iras != null)
                {
                    iras.Dispose();
                }
                iras = i;
            }
        }