Ejemplo n.º 1
0
 public YouTubeFlvToMp3OrAac(string name, IRandomAccessStream ias)
 {
     this._name = name;
     _warnings  = new List <string>();
     if (ias == null)
     {
         return;
     }
     _fs         = WriteableBitmapExpansion.ConvertIRandomAccessStreamToMemoryStream(ias);
     _fileOffset = 0;
     _fileLength = _fs.Length;
     //ExtractStreams();
 }
Ejemplo n.º 2
0
        private async void InitFlvToMp3OrAac(StorageFile storageFile, bool isFileSavePicker)
        {
            this.storageFile = storageFile;
            //this._name = Path.GetFileNameWithoutExtension(storageFile.Name);
            this._name            = storageFile.DisplayName;
            this.isFileSavePicker = isFileSavePicker;
            //var ias = storageFile.OpenAsync(FileAccessMode.Read).GetResults();
            var ias = await storageFile.OpenAsync(FileAccessMode.Read);

            _warnings = new List <string>();
            if (ias == null)
            {
                return;
            }
            _fs         = WriteableBitmapExpansion.ConvertIRandomAccessStreamToMemoryStream(ias);
            _fileOffset = 0;
            _fileLength = _fs.Length;
            //ExtractStreams();
        }