Share via

here is my code for question

Anonymous
2020-06-10T06:06:28.387+00:00

here is my code for questions im trying to get my universal uwp media player to play run dvds but it won't i get a error message im using visual studio community 2019 on windows 10 "im trying to get my universal uwp media player to play run dvds but it won't i get a error message im using visual studio community 2019 on windows 10 it works with mp3 mp4 avi ect except dvds while in debug [Microsoft Q&A] vb2ae posted a new comment on "im trying to get my universal uwp media player to play run dvds but it won't i get a error message im using visual studio community 2019 on windows 10 it works with mp3 mp4 avi ect except dvds while in deb... ![9712-number-5-line-is-now-greyed-out.jpg][1] ![9623-screenshot-29.png][2] ![9713-screenshot-30.png][3] ![9624-screenshot-32.png][4] ![9685-screenshot-31.png][5] 9714-screenshot-33.png ![9686-screenshot-34.png][6] [1]: /api/attachments/9712-number-5-line-is-now-greyed-out.jpg?platform=QnA [2]: /api/attachments/9623-screenshot-29.png?platform=QnA [3]: /api/attachments/9713-screenshot-30.png?platform=QnA [4]: /api/attachments/9624-screenshot-32.png?platform=QnA [5]: /api/attachments/9685-screenshot-31.png?platform=QnA [6]: /api/attachments/9686-screenshot-34.png?platform=QnA this is the demo with the rest littte bit of the code https://www.youtube.com/watch?v=0TPkyBRQJdk

Developer technologies | Universal Windows Platform (UWP)

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,866 Reputation points
    2020-06-10T13:58:20.717+00:00

    The other post showed an object reference error when trying to create the readStream. Did your app request the device capability Optical disc? That is required to read from DVDs and could prevent you from opening a file on the disc.

    https://learn.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations

    https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/how-to-specify-device-capabilities-in-a-package-manifest

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.