Sorry i don't have youtube tutorial, start searching yourself on google about nginx secure_link module and what does.
You need figure how to compile nginx with the module and then, adapt your player to generate video links with the md5 hashes.
In short terms can add unique tokens for every video link and make him expire.
And obviously if video doesn't have valid token or valid timestamp it will return error code.