Yegor, they use Mod Rewrite. So when someone enters
www.domain.com/video/1234567890/theLongHashCode
you write in .htaccess that the url should be treated as video.php?timestamp=12341561234&hash=1203941h23jk479sdf87sdf
This allows you prevent from showing the actual url.
Some sources on mod rewrite: http://www.modrewrite.com/
What you would need to put in .htaccess file, considering you have mod_rewrite module enabled on Apache:
RewriteEngine On
RewriteRule ^video/([0-9]+)/(.*) video.php?timestamp=$1&hash=$2
This only takes in 2 values: timestamp and hash. The video id is not sent. I would not even send the timestamp. For temporary url, I only generate a hash, store it in the database along with the timestamp. So when someone visits an url, I look up the hash from the database. If the hash exists, then I compare the timestamp from the database with the current time, and if it is within the time limit, then the url is considered valid, otherwise it is invalid and write to the page "This link has expired."
So I would have the url look like:
http://hsbsitez.com/video/thehashcodehere
With the following .htaccess file to interpret that url.
RewriteEngine On
RewriteRule ^video/(.*) video.php?hash=$1
Where video.php is the file that checks if the hash exists in the database or not.