private void buttonGetDuation_Click(object sender, EventArgs e) { int seconds = LibPlayer.Player_GetDuation(player); TimeSpan ts = TimeSpan.FromSeconds(seconds); duation.Text = "duation: " + ts.ToString(@"d\d\:h\h\:m\m\:s\s"); //duation.Text = seconds.ToString(); }
private void Timer_Render(object sender, EventArgs e) { LibPlayer.RenderOneFrame(render, player); int duation = LibPlayer.Player_GetDuation(player); int curpos = LibPlayer.Player_GetCurrentPosition(player); process.Minimum = 0; process.Maximum = duation; process.Value = curpos; process.Update(); //label1.Text = (++num).ToString(); //Thread.Sleep(3000); }