1
votes

Is there an API which supports playback of Video files which are stored in the Media Library on a Windows Phone 8?

Until now I have only been able to find the option of playback from Isolated storage as mentioned on the following link:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394041(v=vs.105).aspx

2

2 Answers

1
votes

It seems there is no way to access videos stored in the Media Library :

From StackOverflow :

From MSDN :

MSDN lists all the things that can be done with MediaLibrary in here, (Images, Music and its metadata). But read-only access of videos is not part of it. If it was, no doubt that MS would have mentioned it in this table.

0
votes

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.