locked
drm samples in asp.net RRS feed

  • Question

  •  

    hi

    where can i find samples of wmdrm writeen in asp.net  - vb.net or c#/?

     

    Thanks'

    Sunday, August 5, 2007 2:08 PM

Answers

  • I have a DRM enabled c# application I have written using Media Foundation.  It is *very* rough.  I need to find a few more DRM media files to test with.

     

    Where are you getting your DRM files?
    Monday, August 6, 2007 7:13 AM

All replies

  •  

    Ditto .... Sorta.  Working form the Encoder (WME) Side, IWMDRM.  Good samples there form Visual Basic but trying to implement in ASP.  Any help with doing the following (object instantiation) via ASP much appreciated :

     

    ' Create a WMEncoder object.
      Dim Encoder As WMEncoder
      Set Encoder = New WMEncoder

    ' Create an IWMDRMContentAuthor object.
      Dim DRM As IWMDRMContentAuthor
      Set DRM = Encoder.EncoderDRMContentAuthor

    ' Retrieve the collection of DRM profiles.
      Dim DRMProColl As IWMDRMProfileCollection
      Set DRMProColl = DRM.DRMProfileCollection

    ' Create an IWMDRMProfile object and retrieve the first DRM profile
    ' in the collection.
      Dim DRMPro As IWMDRMProfile
      Set DRMPro = DRMProColl.Item(0)

    ' Retrieve an IWMDRMAttributes object from the IWMDRMContentAuthor object.
      Dim Proattr As IWMDRMAttributes
      Set Proattr = DRM.Attributes

    ' Retrieve an IWMDRMAttributes object from the current DRM profile.
      Dim Proattr As IWMDRMAttributes
      Set Proattr = DRMPro.Attributes

    Grazis ....

    Sunday, August 5, 2007 7:12 PM
  • I have a DRM enabled c# application I have written using Media Foundation.  It is *very* rough.  I need to find a few more DRM media files to test with.

     

    Where are you getting your DRM files?
    Monday, August 6, 2007 7:13 AM
  • Would it be of value to have a c# version of the ProtectedPlayback MediaFoundation sample?
    Wednesday, August 8, 2007 12:47 AM