示例#1
0
 private void Seeker_ProgressChanged(object sender, SeekBar.ProgressChangedEventArgs e)
 {
     if (e.FromUser)
     {
         long lengthPlayed = YPlayer.DurationMillis * e.Progress / 100;
         YPlayer.SeekToMillis((int)lengthPlayed);
     }
 }