locked
How to associate mp4 file with only audio ?

    Question

  • I'm developing a Windows Store App. It is a music player tool.

    A file association to mp4 file is created. 

    I want to associate mp4 file with only audio.

    And I have set up the ContentType with "audio/mp4", but it doesn't work.

    When double-click mp4 file with video fream, my app is launched.

    Is there a way to associate mp4 file with only audio ?

    Or My setting on ContentType is wrong ?

    Thursday, February 13, 2014 12:26 PM

Answers

  • AFAIK, this isn't possible. The extension handler cannot look into the file itself to determine the contents.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, February 13, 2014 1:34 PM
    Moderator