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