Bogdan Gavril MSFT
Bogdan Gavril MSFT

Reputation: 21498

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?

Upvotes: 2

Views: 1817

Answers (3)

Tomas Vinter
Tomas Vinter

Reputation: 2691

There are sample code included in the Microsoft Media Format 11 SDK that display how to read headers from the ASF file format .

Good Luck!

Upvotes: 1

Bogdan Gavril MSFT
Bogdan Gavril MSFT

Reputation: 21498

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.

Upvotes: 0

Wim Coenen
Wim Coenen

Reputation: 66793

WMA files are in the ASF format. You can download the ASF specification from microsoft.

Upvotes: 1

Related Questions