locked
Custom Media Source to playback content securely using PMP in WMP? RRS feed

  • Question

  • Hi All,

    I have been struggling with getting a clear answer to my question, I have opened a ticket with MS support and spent hours reading through MSDN and the SDK and still am unsure. The question is, if I write a custom media source can the end user playback my content securely using PMP through Windows Media Player v11 and later?

    I was told that the only way for PMP to work in WMP is to use the ASF format.


    Thanks,
     -JT
    Thursday, June 11, 2009 5:44 AM

Answers

  • That may be right. There are two pieces to this:

    1. Write a media source that works in the PMP.

    2. Get Windows Media Player to pick up your source. 

    To write a media source for the PMP, you will need to have your DLL code-signed and obtain a digital certificate. For more information, download the whitepaper at http://www.microsoft.com/whdc/winlogo/drvsign/Pmp-sign.mspx

    I will try to find out the answer to (2).

    - Mike
    Mike Wasson (SDK Documentation)
    Thursday, June 11, 2009 4:07 PM

All replies

  • That may be right. There are two pieces to this:

    1. Write a media source that works in the PMP.

    2. Get Windows Media Player to pick up your source. 

    To write a media source for the PMP, you will need to have your DLL code-signed and obtain a digital certificate. For more information, download the whitepaper at http://www.microsoft.com/whdc/winlogo/drvsign/Pmp-sign.mspx

    I will try to find out the answer to (2).

    - Mike
    Mike Wasson (SDK Documentation)
    Thursday, June 11, 2009 4:07 PM
  • Thanks Mike. I have read the pmp-sign doc and I think I know all the pieces to make it work, though we don't want to start building it and find out that it won't work.

    Here is the pseudo-process that I think is needed...

    1. Write the custom Media Source
    2. Set the appropriate PMP flags on the stream descriptors (i.e. http://msdn.microsoft.com/en-us/library/ms694912(VS.85).aspx)
    3. Implement an IMFByteStreamHandler that knows how to create the custom media source
    4. Setup the byte stream handler in the registry to pick up a custom file extension

    I would assume that when my file is opened it would search the registry, try and create and load the handler/media source (succeed since it is signed) then read certain flags out of the presentation / stream descriptors that indicate it should go through PMP.

    I think that's the general idea.

    Thanks again, much appreciated.

    -JT

    Thursday, June 11, 2009 4:27 PM