Search code examples
.netmediadrmasf

How to read asf header in C#?


Having a wma file, how can one parse the header using c#?

The purpose is to find the Key ID in the Content Encryption Object (that forms a part of the DRM license). Do you use the WM Format SDK or WM rights manager?


Solution

  • There is a WindowsMediaPlayer class in the framework. It can open asf files and read particular header flags (like prebuffer time), that other libraries (taglib) do not read.