CodeIgniter Forums

Full Version: Different between direct and redirect path
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I have a video file in my project and try to show it in my app android
I use two way for show it
1: show video directly => http://example.com/files/video.mp4
2: show video with redirect (in this way,i have script file that i send file name to it and redirect to video)
<?php
$file_id = $_GET['file_name'];
redirect('http://example.com/files/".$file_id);
?>

And the main issue is :
When i show video directly,download speed is high and there is no problem
But when i use my script for show video,it is very slow

Why?