コード例 #1
0
 public async Task SetTime(double newTime)
 {
     if (newTime < 0)
     {
         newTime = 0;
     }
     if (newTime > Track.Duration.TotalSeconds)
     {
         newTime = (int)Track.Duration.TotalSeconds;
     }
     await _audio.SetCurrentTime(newTime);
 }