Example #1
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;
        }
Example #2
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;
            }
        }