user380719
user380719

Reputation: 9903

How can I get the duration of a video?

Using WPF, how can I get the duration of a video in a .wmv file?

Upvotes: 2

Views: 2227

Answers (2)

Navid Rahmani
Navid Rahmani

Reputation: 7958

If you are using MediaElement you can use MediaElement.NaturalDuration Property.

Upvotes: 2

Related Questions