Dear all, I am new to the forum. I have some videos that I don't like to expose the true media url. Can you please give me some suggestions on how to build a php file that can handle this problem?
For example: if the real file is: http://mydomain.com/media/123.mp4, and I would like to use something like: http://mydomain.com/media.php?file=123.mp4 that will be identical to the original mp4 file and can be used by player. But I couldn't figure out how to write the media.php file. I searched the forum, and all talks are about flv files.
Thanks in advance!

<?php // get-file.php// call with: http://www.mydomain.com/path/get-file.php?mid=1
// player calls with: 'file': encodeURIComponent('http://www.mydomain.com/path/get-file.php?mid=1'), $mid = (isset($_GET['mid'])) ? intval($_GET['mid']) : '1'; $url[1] = 'http://www.mydomain.com/path/video1.mp4';
$url[2] = 'http://www.mydomain.com/path/video2.mp4';
$url[3] = 'http://www.mydomain.com/path/video3.mp4';
$url[4] = 'http://www.mydomain.com/path/video3.mp4';
$url[5] = 'http://www.mydomain.com/path/video3.mp4';
$url[6] = 'http://www.mydomain.com/path/video3.mp4'; header("Location: " . $url[$mid[0]]);
exit; ?>