request CffOfflineDownloaderPlugin sample

Topics: HTML5 web, Windows 8 JavaScript, Windows 8 Xaml
Feb 3, 2014 at 11:00 PM
Edited Feb 3, 2014 at 11:01 PM
I am getting access denied when using cffofflinedownloaderplugin. Does anyone know what permissions need to be set in order for the content which the user selects be not denied? I went through am using a FileOpenPicker in order to select the storageFile which functions great but the downloader plugin doens't seem to then have access to that file even though the app should get access by using the fileopenpicker.
var fileOpenPicker = new Windows.Storage.Pickers.FileOpenPicker();
fileOpenPicker.viewMode = Windows.Storage.Pickers.PickerViewMode.thumbnail;
fileOpenPicker.suggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.videosLibrary;
fileOpenPicker.fileTypeFilter.replaceAll([".uvu"]);

fileOpenPicker.pickSingleFileAsync().done(function (file) {
          if (file) {
               _player.adaptivePlugin.DownloaderPlugin = new Microsoft.AdaptiveStreaming.Dash.CffOfflineDownloaderPlugin(file);
                _player.src = "ms-sstr://local/" + file.name; // create a dummy url, this can actually be anything.
            }
            else {
               //no file selected
            }
});
Feb 4, 2014 at 6:47 PM
this solution seems to work for cff offline playback using a filepicker
var fileOpenPicker = new Windows.Storage.Pickers.FileOpenPicker();
        fileOpenPicker.viewMode = Windows.Storage.Pickers.PickerViewMode.thumbnail;
        fileOpenPicker.suggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.videosLibrary;
        fileOpenPicker.fileTypeFilter.replaceAll([".uvu"]);

        fileOpenPicker.pickSingleFileAsync().done(function (file) {
            if (file) {
                _player.adaptivePlugin.DownloaderPlugin = new Microsoft.AdaptiveStreaming.Dash.CffOfflineDownloaderPlugin(file);
                _player.src = URL.createObjectURL(file);
            }
            else {
               //no file selected
            }
        });
Marked as answer by JGeils83 on 2/4/2014 at 11:48 AM