CodePlexProject Hosting for Open Source Software
WPF Media Kit indeed is great for video playback. However, I'm curious if there's any way I can retrieve the total duration of the video?
Sorry I'm new to this.
It returns 0 value tho..
I wonder how I should make it to work.
dvdPlayer.Source = new Uri(url);
long duration = 0;
duration = dvdPlayer.MediaDuration;
The source probably hasn't finished loading yet -- it is asynchronous. You'll need to delay before reading it.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.