Seek() public method

public Seek ( System.TimeSpan newPosition ) : void
newPosition System.TimeSpan
return void
Exemplo n.º 1
0
        /// <summary>Seeks to the specified time.</summary>
        /// <param name="time">The time position to seek to, in seconds.</param>
        public void Seek(TimeSpan time)
        {
            if (!isLoaded)
            {
                return;
            }

            player.Seek(time);
        }
Exemplo n.º 2
0
 private bool UpdatePlayerPosition()
 {
     userUpdateTimeoutId = 0;
     player.Seek(slider.Value);
     return(false);
 }