I have list of files
D:\\Videos\\Video_1.mp4
\\\\SOME-NETWORK-PC\\Shared\\Video_2.mp4
...
I need play files in MediaElement.
MediaElement.Source = new Uri(url from list);
MediaElement.Play();
but I have this error:
MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED
Default installed in windows 10 "Movies & TV" - can play video from this list.
In Windows Store App user must allow access to file/folder with FileOpenPicker/FolderPicker
After getting StorageFile (PickSingleFileAsync), save to own list and save to FutureAccessList
StorageApplicationPermissions.FutureAccessList.AddOrReplace(ID, StorageFile)
StorageApplicationPermissions.FutureAccessList.GetFileAsync(ID)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.