duncan3dc\Sonos\Controller::seek PHP Method

seek() public method

Seeks to a specific position within the current track.
public seek ( integer $seconds ) : static
$seconds integer The number of seconds to position to in the track
return static
    public function seek($seconds)
    {
        $minutes = floor($seconds / 60);
        $seconds = $seconds % 60;
        $hours = floor($minutes / 60);
        $minutes = $minutes % 60;
        $this->soap("AVTransport", "Seek", ["Unit" => "REL_TIME", "Target" => sprintf("%02s:%02s:%02s", $hours, $minutes, $seconds)]);
        return $this;
    }