Reputation: 9903
Using WPF, how can I get the duration of a video in a .wmv file?
Upvotes: 2
Views: 2227
Reputation: 7958
If you are using MediaElement you can use MediaElement.NaturalDuration Property.
MediaElement
MediaElement.NaturalDuration
Reputation: 300499
Retreiving the duration of a WMV in C#
Upvotes: 3