locked
How to retrieve the IsProteced property from a music file? RRS feed

  • Question

  • Hi!

    I'm working on a music player for windows 8 and I've got a problem: all songs downloaded by Xbox Music are protected by DRM, and when I try to set it as source to my MediaElement it fails. How can I know if it is protected programatically to avoid it?

    Thanks!

    Saturday, October 12, 2013 5:31 PM

Answers

  • Hi Alan,

    I'm not sure if you try this: PlayToPreferredSourceUri on MediaElement, this method enable the app to gets or sets the path to the preferred media source which enables the Play To target device to stream the media content, which can be DRM protected,  from a different location, such as a cloud media server.

    Best Regards

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, October 14, 2013 2:32 AM
    Moderator