'Seeks to position (in seconds).'

def seek(self, position):

    (cur_pos, cur_len) = self.time()
    if (position > cur_len):
        self.stop()
        return
    fmt = Gst.Format(Gst.Format.TIME)
    ns = (position * (10 ** 9))
    self.player.seek_simple(fmt, Gst.SeekFlags.FLUSH, ns)
    self.cached_time = (position, cur_len)
