Advertisement
zefie

VLC duration to TimeSpan

Aug 10th, 2014
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.15 KB | None | 0 0
  1. if (MediaTimeSpan.Seconds == 0) {
  2.     float a = MediaPosition * (float)vlc.Media.Duration.TotalMilliseconds;
  3.     MediaTimeSpan = new TimeSpan((long)a * 10000);
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement