1

I need to access videos on camera roll and also on Music+Video. but it seems there is no way at all.

Here in the documentation says we can use:

MediaLibrary library = new MediaLibrary();

But it only can access musics.

Can we say I should forget this thing for ever in WP8?

4

2 回答 2

2

Unfortunately, there is no way to access videos in Media Library.
You have read-write access only to audio and photos. See this answer: https://stackoverflow.com/a/13473349/1029518

于 2013-07-26T10:43:22.143 回答
0

There are a couple answers in the following thread which points out it is now feasible to read the video files via KnownFolders if you upgrade to Windows Phone 8.1: Windows Phone 8: Media file access

Here is an alternative option for accessing the videos (also in Windows Phone 8.1):

        FileOpenPicker picker = new FileOpenPicker();
        picker.ViewMode = PickerViewMode.Thumbnail;
        picker.SuggestedStartLocation = PickerLocationId.VideosLibrary;
        picker.FileTypeFilter.Add(".mp4");
        picker.PickSingleFileAndContinue();  

Once you have the file you should be able to play it back.

于 2015-04-02T17:20:08.280 回答