How to seek to any time of an (unfinished) loading FLV?

I see YouTube can seek to any time of the video even when it’s not fully loaded. How can we do this? Is this a server side or client side coding?
Thanks!